summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-05-20 01:59:20 +0200
committermonsta <[email protected]>2017-06-22 18:46:00 +0300
commitc24df41601ceba5f929b8babea04ea5a6a6ac68b (patch)
tree986200bf0c4c4674f5ec35fddee70967783bca9c
parente6862d594bf67991b4d3b9d4708837ea14a48946 (diff)
downloadengrampa-c24df41601ceba5f929b8babea04ea5a6a6ac68b.tar.bz2
engrampa-c24df41601ceba5f929b8babea04ea5a6a6ac68b.tar.xz
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
-rw-r--r--src/fr-command-7z.c6
1 files changed, 5 insertions, 1 deletions
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;
}