summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPredrag Ivanovic <predivan@mts.rs>2017-09-18 15:11:37 +0200
committerFredrik Rinnestam <fredrik@crux.nu>2017-09-19 20:11:19 +0200
commit62e416b52cf328d675a8f2e28007f9e697be3025 (patch)
tree24b5b15f2e663d7926257f4b0e6de93ae6501716
parent8dfe440b32a7db99d33b0daa656ce82230e32bf3 (diff)
downloadpkgutils-62e416b52cf328d675a8f2e28007f9e697be3025.tar.gz
pkgutils-62e416b52cf328d675a8f2e28007f9e697be3025.tar.xz
pkgmk.in: Add 7z to unpack_source function
Libarchive(bsdtar) can extract 7-Zip archives since 3.0, so add them as supported source Ref: https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
-rwxr-xr-xpkgmk.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgmk.in b/pkgmk.in
index e7897ac5..c203f2c9 100755
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -1,10 +1,10 @@
#!/bin/bash
#
# pkgutils
-#
+#
# Copyright (c) 2000-2005 Per Liden
# Copyright (c) 2006-2017 by CRUX team (http://crux.nu)
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -197,7 +197,7 @@ unpack_source() {
for FILE in ${source[@]}; do
LOCAL_FILENAME=`get_filename $FILE`
case $LOCAL_FILENAME in
- *.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm)
+ *.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm|*.7z)
COMMAND="bsdtar -p -o -C $SRC -xf $LOCAL_FILENAME" ;;
*)
COMMAND="cp $LOCAL_FILENAME $SRC" ;;

Generated by cgit