cookutils rev 140

cook: add suport for https (GNU wget should be in BUILD_DEPENDS like if hg|svn|etc...
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 11 14:25:34 2011 +0200 (2011-05-11)
parents 4bcefa095cb8
children 926b959c282c
files cook
line diff
     1.1 --- a/cook	Wed May 11 13:35:20 2011 +0200
     1.2 +++ b/cook	Wed May 11 14:25:34 2011 +0200
     1.3 @@ -175,9 +175,9 @@
     1.4  get_source() {
     1.5  	pwd=$(pwd)
     1.6  	case "$WGET_URL" in
     1.7 -		http://*|ftp://*)
     1.8 +		http://*|https://*|ftp://*)
     1.9  			# Busybox Wget is better!
    1.10 -			busybox wget -c -P $SRC $WGET_URL || \
    1.11 +			wget -c -P $SRC $WGET_URL || \
    1.12  				(echo -e "ERROR: wget $WGET_URL" && exit 1) ;;
    1.13  		hg*|mercurial*)
    1.14  			# We are in cache so clone here and create a tarball
    1.15 @@ -422,7 +422,7 @@
    1.16  	
    1.17  	# If a cook failed deps are not removed since we exit 1.
    1.18  	[ ! -s "installed.cook.diff" ] && \
    1.19 -		busybox diff installed.list installed.cook > installed.cook.diff
    1.20 +		diff installed.list installed.cook > installed.cook.diff
    1.21  	deps=$(cat installed.cook.diff | grep ^+[a-zA-Z0-9] | wc -l)
    1.22  
    1.23  	# Get source tarball and make sure we have source dir named: