CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Use bsdtar instead of GNU tar to extract all handled archive formats.
authorTilman Sauerbeck <tilman@crux.nu>
Sat, 20 Jun 2009 13:28:33 +0000 (15:28 +0200)
committerTilman Sauerbeck <tilman@crux.nu>
Sat, 20 Jun 2009 13:28:33 +0000 (15:28 +0200)
pkgmk.in

index 9fdf768e3a10de5101ba4fec7dcf43ecf4123c43..2358de08988050a83dbed0e4ad584422b7e72268 100755 (executable)
--- 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