[file-roller: 1/3] 7z: fix progress display when using p7zip



commit 38b9b6b0bf66892dc2f27b464ae8a9d1597d1167
Author: Peter Keresztes Schmidt <carbenium outlook com>
Date:   Tue Aug 6 01:25:32 2019 +0200

    7z: fix progress display when using p7zip
    
    Fixes #19

 src/fr-command-7z.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 8ad69cf4..3050f516 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -303,7 +303,7 @@ process_line__add (char     *line,
        }
 
        if (fr_archive_progress_get_total_files (archive) > 0)
-               parse_progress_line (archive, "Compressing  ", _("Adding “%s”"), line);
+               parse_progress_line (archive, "+ ", _("Adding “%s”"), line);
 }
 
 
@@ -341,6 +341,7 @@ fr_command_7z_add (FrCommand  *command,
        }
 
        fr_process_add_arg (command->process, "-bd");
+       fr_process_add_arg (command->process, "-bb1");
        fr_process_add_arg (command->process, "-y");
        if (follow_links)
                fr_process_add_arg (command->process, "-l");
@@ -455,7 +456,7 @@ process_line__extract (char     *line,
        FrArchive *archive = FR_ARCHIVE (data);
 
        if (fr_archive_progress_get_total_files (archive) > 0)
-               parse_progress_line (archive, "Extracting  ", _("Extracting “%s”"), line);
+               parse_progress_line (archive, "- ", _("Extracting “%s”"), line);
 }
 
 
@@ -483,6 +484,7 @@ fr_command_7z_extract (FrCommand  *command,
                fr_process_add_arg (command->process, "x");
 
        fr_process_add_arg (command->process, "-bd");
+       fr_process_add_arg (command->process, "-bb1");
        fr_process_add_arg (command->process, "-y");
        add_password_arg (command, archive->password, FALSE);
 


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