diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-03 15:59:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-03 15:59:52 +0000 |
commit | f580e6657a17c5afeba8afa479020986dce239c9 (patch) | |
tree | 0977b15809c73b20d8f1f92dd1149309a5b1d1ca /abuild.in | |
parent | 470f05214258fac6981251cd81a17ed4b012bcc0 (diff) | |
download | abuild-f580e6657a17c5afeba8afa479020986dce239c9.tar.gz abuild-f580e6657a17c5afeba8afa479020986dce239c9.tar.bz2 abuild-f580e6657a17c5afeba8afa479020986dce239c9.tar.xz abuild-f580e6657a17c5afeba8afa479020986dce239c9.zip |
abuild: support for saveas-* in sourcecheck
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -172,14 +172,20 @@ md5check() { # verify upstream sources sourcecheck() { - local s - for s in $source; do - if is_remote $s; then - wget -q -s $s || return 1 - fi + local uri + for uri in $source; do + is_remote $uri || continue + case "$uri" in + saveas-*://*) + uri=${uri#saveas-} + uri=${uri%/*} + ;; + esac + wget -q -s "$uri" || return 1 done + return 0 } - + uri_fetch() { local uri="$1" local d="${uri##*/}" # $(basename $uri) |