[engrampa] 01/02: debian/patches: Add 0000_fix-maximum-compression-zip.patch.

Vangelis Mouhtsis gnugr-guest at moszumanska.debian.org
Sun Sep 24 10:46:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

gnugr-guest pushed a commit to branch parrot/3.7
in repository engrampa.

commit 3dba390ccad00916cd77d055f7588f690155e9cd
Author: Vangelis Mouhtsis <vangelis at gnugr.org>
Date:   Sun Sep 24 13:43:02 2017 +0300

    debian/patches: Add 0000_fix-maximum-compression-zip.patch.
---
 .../patches/0000_fix-maximum-compression-zip.patch | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/0000_fix-maximum-compression-zip.patch b/debian/patches/0000_fix-maximum-compression-zip.patch
new file mode 100644
index 0000000..ba936d4
--- /dev/null
+++ b/debian/patches/0000_fix-maximum-compression-zip.patch
@@ -0,0 +1,30 @@
+From c24df41601ceba5f929b8babea04ea5a6a6ac68b Mon Sep 17 00:00:00 2001
+From: ZenWalker <scow at riseup.net>
+Date: Sat, 20 May 2017 01:59:20 +0200
+Subject: [PATCH] Fix: create zip files in "maximum" compression level
+
+based in file-roller commit:
+https://git.gnome.org/browse/file-roller/commit/?id=f9b8a010e7fe5a9bec158dfc5bd8ef1e11bf3842
+
+Fixes:
+https://bugs.launchpad.net/ubuntu/+source/engrampa/+bug/1580860
+---
+ src/fr-command-7z.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
+index def5dc6..e3230a7 100644
+--- a/src/fr-command-7z.c
++++ b/src/fr-command-7z.c
+@@ -362,7 +362,11 @@ fr_command_7z_add (FrCommand     *comm,
+	break;
+    case FR_COMPRESSION_MAXIMUM:
+	fr_process_add_arg (comm->process, "-mx=9");
+-		fr_process_add_arg (comm->process, "-m0=lzma2");;
++		if (! is_mime_type (comm->mime_type, "application/zip")
++		    && ! is_mime_type (comm->mime_type, "application/x-cbz"))
++		{
++			fr_process_add_arg (comm->process, "-m0=lzma2");;
++		}
+	break;
+    }
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6b85a2d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0000_fix-maximum-compression-zip.patch
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/engrampa.git



More information about the pkg-mate-commits mailing list