cookutils rev 145
Use special case for https (Thanks Godane)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 11 18:32:31 2011 +0200 (2011-05-11) |
parents | 112dbe0ed058 |
children | d9c589758654 |
files | cook |
line diff
1.1 --- a/cook Wed May 11 18:29:49 2011 +0200 1.2 +++ b/cook Wed May 11 18:32:31 2011 +0200 1.3 @@ -178,18 +178,21 @@ 1.4 mv $tarball $SRC && rm -rf $pkgsrc 1.5 } 1.6 1.7 -# Get package source. 1.8 +# Get package source. For SCM we are in cache so clone here and create a 1.9 +# tarball here. 1.10 get_source() { 1.11 pwd=$(pwd) 1.12 pkgsrc=${SOURCE:-$PACKAGE}-$VERSION 1.13 tarball=$pkgsrc.tar.bz2 1.14 case "$WGET_URL" in 1.15 - http://*|https://*|ftp://*) 1.16 + http://*|ftp://*) 1.17 # Busybox Wget is better! 1.18 - wget -c -P $SRC $WGET_URL || \ 1.19 + busybox wget -c -P $SRC $WGET_URL || \ 1.20 + (echo -e "ERROR: wget $WGET_URL" && exit 1) ;; 1.21 + https://*) 1.22 + wget -c --no-check-certificate -P $SRC $WGET_URL || \ 1.23 (echo -e "ERROR: wget $WGET_URL" && exit 1) ;; 1.24 hg*|mercurial*) 1.25 - # We are in cache so clone here and create a tarball 1.26 if $(echo "$WGET_URL" | fgrep -q "hg|"); then 1.27 url=${WGET_URL#hg|} 1.28 else