savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] [PATCH] Add 7z archive support


From: Bruno Félix Rezende Ribeiro
Subject: [Savannah-hackers-public] [PATCH] Add 7z archive support
Date: Sat, 26 Sep 2015 07:17:25 -0300

---
 gsv-eval-remote.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gsv-eval-remote.sh b/gsv-eval-remote.sh
index e84ac63..516f96c 100755
--- a/gsv-eval-remote.sh
+++ b/gsv-eval-remote.sh
@@ -144,6 +144,13 @@ process_package() {
             cd "$DIRECTORY"
             pwd
             ;;
+        *application/x-7z-compressed*)
+            DIRECTORY=$(mktemp -d x-7z.XXXXXX) \
+                || die "failed to create temporary directory"
+            7z x -o"$DIRECTORY" "$1" > /dev/null || die "failed to extract 
files from '$1'"
+            cd "$DIRECTORY"
+            pwd
+            ;;
         *application/x-tar*)
             DIRECTORY=$(mktemp -d x-tar.XXXXXX) \
                 || die "failed to create temporary directory"
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]