summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 775469d..9af943b 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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"
}