# HG changeset patch # User Pascal Bellard # Date 1233482346 -3600 # Node ID b538edb055969b11cf0b686f55bad7a81fd7a539 # Parent 6118540015bd282e5d83449e4c973a26d65df88d xarchive: fix tar.bz2 handler for busybox diff -r 6118540015bd -r b538edb05596 xarchive/stuff/slitaz-wrap.sh --- a/xarchive/stuff/slitaz-wrap.sh Sun Feb 01 00:54:55 2009 +0100 +++ b/xarchive/stuff/slitaz-wrap.sh Sun Feb 01 10:59:06 2009 +0100 @@ -81,7 +81,7 @@ done for ext in $BZIP2_EXTS; do if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then - DECOMPRESS="bzip2 -dc" + DECOMPRESS="bunzip2 -c" COMPRESS="bzip2 -c" fi done @@ -146,6 +146,7 @@ action=$1 shift tardir="$(dirname "$archive")" + [ $(expr "$lc_archive" : ".*\."$BZIP2_EXTS"$") -gt ] && ! which bzip2 && return for ext in $TAR_EXTS $GZIP_EXTS $BZIP2_EXTS $COMPRESS_EXTS $LZMA_EXTS; do if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then if [ "$action" = "new_archive" ]; then