summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index a56a56c..ec40612 100755
--- a/abuild.in
+++ b/abuild.in
@@ -179,7 +179,14 @@ uri_fetch() {
# we need GNU wget for this
case "$uri" in
- https://*) opts="--no-check-certificate";;
+ *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
mkdir -p "$SRCDEST"
@@ -194,7 +201,7 @@ uri_fetch() {
is_remote() {
case "$1" in
- http://*|ftp://*|https://*)
+ http://*|ftp://*|https://*|saveas-*://*)
return 0;;
esac
return 1