tazwok rev 557

tazwok: unlzma compatibility
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 30 09:48:13 2016 +0200 (2016-03-30)
parents 857659a86f24
children 61b3b07955df
files tazwok
line diff
     1.1 --- a/tazwok	Wed Mar 30 01:54:35 2016 +0300
     1.2 +++ b/tazwok	Wed Mar 30 09:48:13 2016 +0200
     1.3 @@ -504,7 +504,7 @@
     1.4  				*zip|*xpi) cd $tmp_src && unzip -o $SOURCES_REPOSITORY/$TARBALL ;;
     1.5  				*bz2|*tbz|*gem) tar xjf $SOURCES_REPOSITORY/$TARBALL -C $tmp_src;;
     1.6  				*tar) tar xf $SOURCES_REPOSITORY/$TARBALL -C $tmp_src;;
     1.7 -				*lzma|*lz) unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - -C $tmp_src;;
     1.8 +				*lzma|*lz) unlzma < $SOURCES_REPOSITORY/$TARBALL | tar xf - -C $tmp_src;;
     1.9  				*xz) unxz -c $SOURCES_REPOSITORY/$TARBALL | tar xf - -C $tmp_src;;
    1.10  				*Z|*taz) uncompress -c $SOURCES_REPOSITORY/$TARBALL | tar xf - -C $tmp_src;;
    1.11  				*gz) tar xzf $SOURCES_REPOSITORY/$TARBALL -C $tmp_src;;
    1.12 @@ -1211,7 +1211,7 @@
    1.13  	
    1.14  	# Restore package tree in case we want to browse it.
    1.15  	report step "Restoring original package tree"
    1.16 -	{ zcat fs.cpio.gz 2> /dev/null || unlzma -c fs.cpio.lzma; } | cpio --quiet -id
    1.17 +	{ zcat fs.cpio.gz 2> /dev/null || unlzma < fs.cpio.lzma; } | cpio --quiet -id
    1.18  	rm fs.cpio.* && cd ..
    1.19  
    1.20  	# Recook of reverse-depends if package was broken.
    1.21 @@ -3036,7 +3036,7 @@
    1.22  					wget "$TARBALL_WOK" &&
    1.23  					case $TARBALL_WOK in
    1.24  						*bz2) tar xjf *.bz2 -C wok; rm *.bz2;;
    1.25 -						*lzma) unlzma -c *.lzma | tar xf - -C wok; rm *.lzma ;;
    1.26 +						*lzma) unlzma < *.lzma | tar xf - -C wok; rm *.lzma ;;
    1.27  						*gz) tar xzf *.gz -C wok; rm*.gz ;;
    1.28  					esac &&
    1.29  					rm -r $(ls -d $clean_wok/*) &&