mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 09:19:40 +00:00
abuild: trivial update to new saveas-*:// support
Removed the asterisk from the beginning of the https check, and moved the saveas- check above.
This commit is contained in:
parent
09ea4c1328
commit
1a67bb56a3
10
abuild.in
10
abuild.in
@ -177,17 +177,17 @@ uri_fetch() {
|
|||||||
[ -n "$quiet" ] && opts="-q"
|
[ -n "$quiet" ] && opts="-q"
|
||||||
[ -f "$SRCDEST/$d" ] && return 0
|
[ -f "$SRCDEST/$d" ] && return 0
|
||||||
|
|
||||||
# we need GNU wget for this
|
|
||||||
case "$uri" in
|
|
||||||
*https://*) opts="--no-check-certificate";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# fix saveas-*://* URIs
|
# fix saveas-*://* URIs
|
||||||
case "$uri" in
|
case "$uri" in
|
||||||
# remove 'saveas-' from beginning and
|
# remove 'saveas-' from beginning and
|
||||||
# '/filename' from end of URI
|
# '/filename' from end of URI
|
||||||
saveas-*://*) uri="${uri:7:$(expr ${#uri} - 7 - ${#d} - 1)}";;
|
saveas-*://*) uri="${uri:7:$(expr ${#uri} - 7 - ${#d} - 1)}";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# we need GNU wget for this
|
||||||
|
case "$uri" in
|
||||||
|
https://*) opts="--no-check-certificate";;
|
||||||
|
esac
|
||||||
|
|
||||||
mkdir -p "$SRCDEST"
|
mkdir -p "$SRCDEST"
|
||||||
if [ -f "$SRCDEST/$d.part" ]; then
|
if [ -f "$SRCDEST/$d.part" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user