Commit 0000d291 authored by Matthew Brett's avatar Matthew Brett
Browse files

Source archives from local directory if present

parent 562920d0
...@@ -168,9 +168,16 @@ function fetch_unpack { ...@@ -168,9 +168,16 @@ function fetch_unpack {
# Make the archive directory in case it doesn't exist # Make the archive directory in case it doesn't exist
mkdir -p $arch_sdir mkdir -p $arch_sdir
local out_archive="${arch_sdir}/${archive_fname}" local out_archive="${arch_sdir}/${archive_fname}"
# Fetch the archive if it does not exist # If the archive is not already in the archives directory, get it.
if [ ! -f "$out_archive" ]; then if [ ! -f "$out_archive" ]; then
curl -L $url > $out_archive # Source it from multibuild archives if available.
local our_archive="${MULTIBUILD_DIR}/archives/${archive_fname}"
if [ -f "$our_archive" ]; then
ln $our_archive $out_archive
else
# Otherwise download it.
curl -L $url > $out_archive
fi
fi fi
# Unpack archive, refreshing contents, echoing dir and file # Unpack archive, refreshing contents, echoing dir and file
# names. # names.
......
Markdown is supported
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