abuild: allow DISTFILES_MIRROR be a local path
based on patch from Andrew Manison. Thanks!
This commit is contained in:
parent
e9509e5ffe
commit
a06296168f
|
@ -195,7 +195,11 @@ uri_fetch_mirror() {
|
||||||
local uri="$1"
|
local uri="$1"
|
||||||
local d="${uri##*/}" # $(basename $uri)
|
local d="${uri##*/}" # $(basename $uri)
|
||||||
if [ -n "$DISTFILES_MIRROR" ]; then
|
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
|
fi
|
||||||
uri_fetch "$uri"
|
uri_fetch "$uri"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue