[file-roller] 7zip: fixed file deletion from jar, war, ear archives
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] 7zip: fixed file deletion from jar, war, ear archives
- Date: Sun, 18 Aug 2013 09:05:01 +0000 (UTC)
commit ddd25151bdc7a1ab2dca3c13590cb56ad888f411
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Aug 18 11:00:51 2013 +0200
7zip: fixed file deletion from jar, war, ear archives
[bug #701739]
src/fr-command-7z.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index bb2f2ee..b34655c 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -390,7 +390,8 @@ fr_command_7z_delete (FrCommand *command,
const char *from_file,
GList *file_list)
{
- GList *scan;
+ FrArchive *archive = FR_ARCHIVE (command);
+ GList *scan;
fr_command_7z_begin_command (command);
fr_process_add_arg (command->process, "d");
@@ -399,6 +400,12 @@ fr_command_7z_delete (FrCommand *command,
if (_g_mime_type_matches (FR_ARCHIVE (command)->mime_type, "application/x-ms-dos-executable"))
fr_process_add_arg (command->process, "-sfx");
+ 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, "-tzip");
+ }
+
if (from_file != NULL)
fr_process_add_arg_concat (command->process, "-i@", from_file, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]