Commit f580e665 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: support for saveas-* in sourcecheck

parent 470f0521
...@@ -172,14 +172,20 @@ md5check() { ...@@ -172,14 +172,20 @@ md5check() {
# verify upstream sources # verify upstream sources
sourcecheck() { sourcecheck() {
local s local uri
for s in $source; do for uri in $source; do
if is_remote $s; then is_remote $uri || continue
wget -q -s $s || return 1 case "$uri" in
fi saveas-*://*)
uri=${uri#saveas-}
uri=${uri%/*}
;;
esac
wget -q -s "$uri" || return 1
done done
return 0
} }
uri_fetch() { uri_fetch() {
local uri="$1" local uri="$1"
local d="${uri##*/}" # $(basename $uri) local d="${uri##*/}" # $(basename $uri)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment