[file-roller] fails when tryings create zip files if is in "maximum" compression level



commit f9b8a010e7fe5a9bec158dfc5bd8ef1e11bf3842
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Oct 28 09:43:28 2012 +0100

    fails when tryings create zip files if is in "maximum" compression level
    
    [bug #686655]

 src/fr-command-7z.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 3d18370..4a5fc65 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -360,7 +360,11 @@ fr_command_7z_add (FrCommand  *command,
 		break;
 	case FR_COMPRESSION_MAXIMUM:
 		fr_process_add_arg (command->process, "-mx=9");
-		fr_process_add_arg (command->process, "-m0=lzma2");;
+		if (! _g_mime_type_matches (archive->mime_type, "application/zip")
+		    && ! _g_mime_type_matches (archive->mime_type, "application/x-cbz"))
+		{
+			fr_process_add_arg (command->process, "-m0=lzma2");;
+		}
 		break;
 	}
 



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