# HG changeset patch # User Antoine Bodin # Date 1297518246 -3600 # Node ID 76f08e2e2cf5337099431d7e4fde6b4b129d52ce # Parent f91a9bc05a972177726de4a22c6e0f0b2339a106 Forgotten code: support https (from changesets 179 & 182 of tazwok) diff -r f91a9bc05a97 -r 76f08e2e2cf5 tazwok --- a/tazwok Sat Feb 12 14:36:10 2011 +0100 +++ b/tazwok Sat Feb 12 14:44:06 2011 +0100 @@ -634,7 +634,17 @@ download() { for file in $@; do + case "$file" in + [Hh][Tt][Tt][Pp][Ss]*) + if [ -d $INSTALLED/wget ]; then + wget --no-check-certificate -O $(basename $file) $file && break + else + tazwok_warning "$PACKAGE need wget to download the source tarball from $file, please add it as build-depend." + return 1 + fi + esac wget -q $file && break + wget -O $(basename $file) $file && break done }