From 1a67bb56a301818d0acc544fb7d1b4ed677e434e Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Fri, 31 Dec 2010 14:46:56 -0600 Subject: abuild: trivial update to new saveas-*:// support Removed the asterisk from the beginning of the https check, and moved the saveas- check above. --- abuild.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 1e8a8ac..db955f3 100755 --- a/abuild.in +++ b/abuild.in @@ -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 -- cgit v1.2.3