diff options
author | Tilman Sauerbeck <tilman@crux.nu> | 2009-06-20 15:28:33 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@crux.nu> | 2009-06-20 15:28:33 +0200 |
commit | 7b8b79b9c200c91b43c3ee8f0cf202f7a4021f79 (patch) | |
tree | a80e0bad259fb6fc9508b506a7340d30fc44b737 | |
parent | 0b4af85e50830c17b3496434b2dd6a83cd2210ee (diff) | |
download | pkgutils-7b8b79b9c200c91b43c3ee8f0cf202f7a4021f79.tar.gz pkgutils-7b8b79b9c200c91b43c3ee8f0cf202f7a4021f79.tar.xz |
Use bsdtar instead of GNU tar to extract all handled archive formats.
-rwxr-xr-x | pkgmk.in | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -155,12 +155,8 @@ unpack_source() { for FILE in ${source[@]}; do LOCAL_FILENAME=`get_filename $FILE` case $LOCAL_FILENAME in - *.tar.gz|*.tar.Z|*.tgz) - COMMAND="tar -C $SRC --use-compress-program=gzip -xf $LOCAL_FILENAME" ;; - *.tar.bz2) - COMMAND="tar -C $SRC --use-compress-program=bzip2 -xf $LOCAL_FILENAME" ;; - *.zip) - COMMAND="unzip -qq -o -d $SRC $LOCAL_FILENAME" ;; + *.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tar.xz|*.zip) + COMMAND="bsdtar -C $SRC -xf $LOCAL_FILENAME" ;; *) COMMAND="cp $LOCAL_FILENAME $SRC" ;; esac |