From b84c4d3a7205b2e5cf1d5c72b7adea627683ea9a Mon Sep 17 00:00:00 2001 From: Christian Cornelssen Date: Tue, 18 Feb 2020 16:17:33 +0100 Subject: [PATCH] cmd/fsck-cmd.py: Append newline after quoted par2 output With a recent `par2` installed, `bup fsck -v` was printing messages like this: Unexpected par2 error output ''Assuming par2 supports parallel processing when there was no error output and the exit status was zero. A previous commit 19f9faeb0055dadb7f76a953d51acec8373c6edb eliminated the spurious reporting; now make sure we print a newline after the par2 output whenever there actually is an error. Signed-off-by: Christian Cornelssen [rlb@defaultvalue.org: add information from the pr to commit message] Reviewed-by: Rob Browning --- cmd/fsck-cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fsck-cmd.py b/cmd/fsck-cmd.py index a241ac5..14a32c8 100755 --- a/cmd/fsck-cmd.py +++ b/cmd/fsck-cmd.py @@ -63,7 +63,7 @@ def is_par2_parallel(): if opt.verbose: if len(err) > 0 and err != b'Invalid option specified: -t1\n': log('Unexpected par2 error output\n') - log(repr(err)) + log(repr(err) + '\n') if parallel: log('Assuming par2 supports parallel processing\n') else: -- 2.39.2