wok-6.x rev 2124

xarchive: fix tar.bz2 handler for busybox
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 01 10:59:06 2009 +0100 (2009-02-01)
parents 6118540015bd
children 2093d8f83439
files xarchive/stuff/slitaz-wrap.sh
line diff
     1.1 --- a/xarchive/stuff/slitaz-wrap.sh	Sun Feb 01 00:54:55 2009 +0100
     1.2 +++ b/xarchive/stuff/slitaz-wrap.sh	Sun Feb 01 10:59:06 2009 +0100
     1.3 @@ -81,7 +81,7 @@
     1.4  done
     1.5  for ext in $BZIP2_EXTS; do
     1.6      if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
     1.7 -        DECOMPRESS="bzip2 -dc" 
     1.8 +        DECOMPRESS="bunzip2 -c" 
     1.9          COMPRESS="bzip2 -c"
    1.10      fi
    1.11  done
    1.12 @@ -146,6 +146,7 @@
    1.13      action=$1
    1.14      shift
    1.15      tardir="$(dirname "$archive")"
    1.16 +    [ $(expr "$lc_archive" : ".*\."$BZIP2_EXTS"$") -gt ] && ! which bzip2 && return
    1.17      for ext in $TAR_EXTS $GZIP_EXTS $BZIP2_EXTS $COMPRESS_EXTS $LZMA_EXTS; do
    1.18          if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
    1.19  	    if [ "$action" = "new_archive" ]; then