Commit a0629616 authored by Natanael Copa's avatar Natanael Copa

abuild: allow DISTFILES_MIRROR be a local path

based on patch from Andrew Manison. Thanks!
parent e9509e5f
......@@ -195,7 +195,11 @@ uri_fetch_mirror() {
local uri="$1"
local d="${uri##*/}" # $(basename $uri)
if [ -n "$DISTFILES_MIRROR" ]; then
uri_fetch "$DISTFILES_MIRROR"/$d && return 0
if is_remote "$DISTFILES_MIRROR"; then
uri_fetch "$DISTFILES_MIRROR"/$d && return 0
else
cp "$DISTFILES_MIRROR"/$d "$SRCDEST" && return 0
fi
fi
uri_fetch "$uri"
}
......
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