Commit ba02fa63 authored by jake's avatar jake Committed by Jake Wheat
Browse files

alter cabal-install bootstrap.sh to not download the extra package

tarballs if these tarballs are already present.
parent b22b9f96
......@@ -176,7 +176,12 @@ info_pkg () {
if need_pkg ${PKG} ${VER_MATCH}
then
echo "${PKG}-${VER} will be downloaded and installed."
if [ -f "${PKG}-${VER}.tar.gz" ]
then
echo "${PKG}-${VER} will be installed from local tarball."
else
echo "${PKG}-${VER} will be downloaded and installed."
fi
else
echo "${PKG} is already installed and the version is ok."
fi
......@@ -253,8 +258,13 @@ do_pkg () {
if need_pkg ${PKG} ${VER_MATCH}
then
echo
echo "Downloading ${PKG}-${VER}..."
fetch_pkg ${PKG} ${VER}
if [ -f "${PKG}-${VER}.tar.gz" ]
then
echo "Using local tarball for ${PKG}-${VER}"
else
echo "Downloading ${PKG}-${VER}..."
fetch_pkg ${PKG} ${VER}
fi
unpack_pkg ${PKG} ${VER}
cd "${PKG}-${VER}"
install_pkg ${PKG} ${VER}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment