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

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Sat Sep 23 19:02:42 UTC 2017


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

flexiondotorg-guest pushed a commit to branch master
in repository engrampa.

commit 734c62066371abd7ed58141a0a9c647515df0111
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Sat Sep 23 20:01:40 2017 +0100

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

diff --git a/debian/changelog b/debian/changelog
index afe534b..cd5c3a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+engrampa (1.18.2-2) UNRELEASED; urgency=medium
+
+  * debian/patches: Add 0000_fix-maximum-compression-zip.patch. Create
+    zip files in maximum compression level.
+
+ -- Martin Wimpress <martin.wimpress at ubuntu.com>  Sat, 23 Sep 2017 19:59:50 +0100
+
 engrampa (1.18.2-1) unstable; urgency=medium
 
   [ Aron Xu ]
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..fc0317b
--- /dev/null
+++ b/debian/patches/0000_fix-maximum-compression-zip.patch
@@ -0,0 +1,31 @@
+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;
+ 	}
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a107547
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0000_fix-maximum-compression-zip.patch

-- 
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