# HG changeset patch # User Christophe Lincoln # Date 1305131551 -7200 # Node ID 798f15f2cb06a65e66cd60e4657722ab5a889f15 # Parent 112dbe0ed058d99627b11754ec3282461d449f8f Use special case for https (Thanks Godane) diff -r 112dbe0ed058 -r 798f15f2cb06 cook --- a/cook Wed May 11 18:29:49 2011 +0200 +++ b/cook Wed May 11 18:32:31 2011 +0200 @@ -178,18 +178,21 @@ mv $tarball $SRC && rm -rf $pkgsrc } -# Get package source. +# Get package source. For SCM we are in cache so clone here and create a +# tarball here. get_source() { pwd=$(pwd) pkgsrc=${SOURCE:-$PACKAGE}-$VERSION tarball=$pkgsrc.tar.bz2 case "$WGET_URL" in - http://*|https://*|ftp://*) + http://*|ftp://*) # Busybox Wget is better! - wget -c -P $SRC $WGET_URL || \ + busybox wget -c -P $SRC $WGET_URL || \ + (echo -e "ERROR: wget $WGET_URL" && exit 1) ;; + https://*) + wget -c --no-check-certificate -P $SRC $WGET_URL || \ (echo -e "ERROR: wget $WGET_URL" && exit 1) ;; hg*|mercurial*) - # We are in cache so clone here and create a tarball if $(echo "$WGET_URL" | fgrep -q "hg|"); then url=${WGET_URL#hg|} else