diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-18 09:52:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-18 09:52:44 +0000 |
commit | a06296168f37276e1b6a900ae87936561b1908b5 (patch) | |
tree | c655f20ee5cdeb36b73fc84139fe9fc91340c74e /abuild.in | |
parent | e9509e5ffe767888a2d5c738818ff31eaa8fa3a8 (diff) | |
download | abuild-a06296168f37276e1b6a900ae87936561b1908b5.tar.gz abuild-a06296168f37276e1b6a900ae87936561b1908b5.tar.bz2 abuild-a06296168f37276e1b6a900ae87936561b1908b5.tar.xz abuild-a06296168f37276e1b6a900ae87936561b1908b5.zip |
abuild: allow DISTFILES_MIRROR be a local path
based on patch from Andrew Manison. Thanks!
Diffstat (limited to 'abuild.in')
-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" } |