cookutils rev 465 slitaz-tank

cook: Update create_tarball function.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Jun 07 19:12:04 2012 +0000 (2012-06-07)
parents e0e2f37221f4
children 438265947b38
files cook
line diff
     1.1 --- a/cook	Thu Jun 07 17:33:30 2012 +0000
     1.2 +++ b/cook	Thu Jun 07 19:12:04 2012 +0000
     1.3 @@ -174,13 +174,18 @@
     1.4  
     1.5  # Create source tarball when URL is a SCM.
     1.6  create_tarball() {
     1.7 +	local tarball
     1.8 +	tarball=$pkgsrc.tar.bz2
     1.9 +	[ "$LZMA_SRC" ] && tarball=$lzma_tarball
    1.10  	gettext "Creating tarball: "; echo "$tarball"
    1.11  	if [ "$LZMA_SRC" ]; then
    1.12 -		tar -c $pkgsrc | lzma e $SRC/$tarball -si || exit 1
    1.13 +		tar -c $pkgsrc | lzma e $SRC/$tarball -si $LZMA_SET_DIR || exit 1
    1.14 +		LZMA_SRC=""
    1.15  	else
    1.16  		tar cjf $tarball $pkgsrc || exit 1
    1.17  		mv $tarball $SRC && rm -rf $pkgsrc
    1.18  	fi
    1.19 +	TARBALL=$tarball
    1.20  }
    1.21  
    1.22  # Get package source. For SCM we are in cache so clone here and create a