mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-27 09:44:20 +00:00
abuild.in: remove saveas- syntax and fix sourcecheck()
As discussed in alpinelinux/aports#1438 saveas- was removed from abuild-fetch.c with https://github.com/alpinelinux/abuild/pull/20 but abuild.in slipped. Also fixes a wget -s instance that's not supported by recent busybox (-s was changed for --spider). /cc @kaniini
This commit is contained in:
parent
71157f9cdc
commit
56b8d45079
@ -296,15 +296,11 @@ sourcecheck() {
|
|||||||
for uri in $source; do
|
for uri in $source; do
|
||||||
is_remote $uri || continue
|
is_remote $uri || continue
|
||||||
case "$uri" in
|
case "$uri" in
|
||||||
saveas-*://*)
|
|
||||||
uri=${uri#saveas-}
|
|
||||||
uri=${uri%/*}
|
|
||||||
;;
|
|
||||||
*::*)
|
*::*)
|
||||||
uri=${uri##*::}
|
uri=${uri##*::}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
wget -q -s "$uri" || return 1
|
wget --spider -q "$uri" || return 1
|
||||||
done
|
done
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -318,7 +314,7 @@ uri_fetch() {
|
|||||||
|
|
||||||
is_remote() {
|
is_remote() {
|
||||||
case "${1#*::}" in
|
case "${1#*::}" in
|
||||||
http://*|ftp://*|https://*|saveas-*://*)
|
http://*|ftp://*|https://*)
|
||||||
return 0;;
|
return 0;;
|
||||||
esac
|
esac
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user