diff options
-rwxr-xr-x | abuild.in | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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" } |