diff options
author | Matt Smith <mcs@darkregion.net> | 2010-12-31 14:46:56 -0600 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-03 13:41:11 +0000 |
commit | 1a67bb56a301818d0acc544fb7d1b4ed677e434e (patch) | |
tree | e60a6751f1d531f5c03a6c74fbff8b10da498b73 /abuild.in | |
parent | 09ea4c1328de1ccffba21b6bfd3bac2a20b96def (diff) | |
download | abuild-1a67bb56a301818d0acc544fb7d1b4ed677e434e.tar.gz abuild-1a67bb56a301818d0acc544fb7d1b4ed677e434e.tar.bz2 abuild-1a67bb56a301818d0acc544fb7d1b4ed677e434e.tar.xz abuild-1a67bb56a301818d0acc544fb7d1b4ed677e434e.zip |
abuild: trivial update to new saveas-*:// support
Removed the asterisk from the beginning of the https check, and moved the
saveas- check above.
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -177,17 +177,17 @@ uri_fetch() { [ -n "$quiet" ] && opts="-q" [ -f "$SRCDEST/$d" ] && return 0 - # we need GNU wget for this - case "$uri" in - *https://*) opts="--no-check-certificate";; - esac - # fix saveas-*://* URIs case "$uri" in # remove 'saveas-' from beginning and # '/filename' from end of URI saveas-*://*) uri="${uri:7:$(expr ${#uri} - 7 - ${#d} - 1)}";; esac + + # we need GNU wget for this + case "$uri" in + https://*) opts="--no-check-certificate";; + esac mkdir -p "$SRCDEST" if [ -f "$SRCDEST/$d.part" ]; then |