summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-05-20 01:59:20 +0200
committerZenWalker <[email protected]>2017-05-20 01:59:20 +0200
commit7ba30abc3387cd0c6615475fdd7617426bac8fc3 (patch)
tree900a1c55602a19321ac7f97b54324f6b4da99b8d /src
parentcaa90db28019d2612606bcfbaa9fe2be2d783ff2 (diff)
downloadengrampa-7ba30abc3387cd0c6615475fdd7617426bac8fc3.tar.bz2
engrampa-7ba30abc3387cd0c6615475fdd7617426bac8fc3.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
Diffstat (limited to 'src')
-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;
}