From 7f28244cfe266fa76f6cdd29abc37b649bddefd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 15 Oct 2015 21:38:43 -0400 Subject: [PATCH] fix conflict between --stats and --progress the --stats output would be slightly garbled by --progress, because of the \r that is output at the last line... example: initializing cache reading files cache processing files ------------------------------------------------------------------------------ s/twotone Archive name: 2015-10-15-test --- borg/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/helpers.py b/borg/helpers.py index d0b5b7ad8..987e35f8d 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -181,7 +181,7 @@ class Statistics: format_file_size(self.osize), format_file_size(self.csize), format_file_size(self.usize), self.nfiles, path) else: msg = ' ' * 79 - print(msg, file=sys.stderr, end='\r') + print(msg, file=sys.stderr, end=final and "\n" or "\r") sys.stderr.flush()