From f580e6657a17c5afeba8afa479020986dce239c9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 3 Jan 2011 15:59:52 +0000 Subject: abuild: support for saveas-* in sourcecheck --- abuild.in | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 31ad046..b5d716d 100755 --- a/abuild.in +++ b/abuild.in @@ -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) -- cgit v1.2.3-60-g2f50