tazwok rev 255

Forgotten code: support https (from changesets 179 & 182 of tazwok)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 12 14:44:06 2011 +0100 (2011-02-12)
parents f91a9bc05a97
children dd46dd15a4ef
files tazwok
line diff
     1.1 --- a/tazwok	Sat Feb 12 14:36:10 2011 +0100
     1.2 +++ b/tazwok	Sat Feb 12 14:44:06 2011 +0100
     1.3 @@ -634,7 +634,17 @@
     1.4  download()
     1.5  {
     1.6  	for file in $@; do
     1.7 +		case "$file" in
     1.8 +			[Hh][Tt][Tt][Pp][Ss]*)
     1.9 +				if [ -d $INSTALLED/wget ]; then
    1.10 +					wget --no-check-certificate -O $(basename $file) $file && break
    1.11 +				else
    1.12 +					tazwok_warning "$PACKAGE need wget to download the source tarball from $file, please add it as build-depend."
    1.13 +					return 1
    1.14 +				fi
    1.15 +		esac
    1.16  		wget -q $file && break
    1.17 +		wget -O $(basename $file) $file && break
    1.18  	done
    1.19  }
    1.20