From: Tilman Sauerbeck Date: Sat, 20 Jun 2009 13:28:33 +0000 (+0200) Subject: Use bsdtar instead of GNU tar to extract all handled archive formats. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=7b8b79b9c200c91b43c3ee8f0cf202f7a4021f79;p=pkgutils-cross.git Use bsdtar instead of GNU tar to extract all handled archive formats. --- diff --git a/pkgmk.in b/pkgmk.in index 9fdf768..2358de0 100755 --- a/pkgmk.in +++ b/pkgmk.in @@ -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