From 7b8b79b9c200c91b43c3ee8f0cf202f7a4021f79 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 20 Jun 2009 15:28:33 +0200 Subject: [PATCH] Use bsdtar instead of GNU tar to extract all handled archive formats. --- pkgmk.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 -- 2.26.2