]> arthur.barton.de Git - bup.git/commitdiff
cmd/fsck-cmd.py: Append newline after quoted par2 output
authorChristian Cornelssen <ccorn@1tein.de>
Tue, 18 Feb 2020 15:17:33 +0000 (16:17 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 1 Mar 2020 22:55:00 +0000 (16:55 -0600)
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 <ccorn@1tein.de>
[rlb@defaultvalue.org: add information from the pr to commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/fsck-cmd.py

index a241ac5b4eb86c8b0efaa8441c8b74b7d43c2cfe..14a32c8ca8a691339275c198efa0b1661e7a5b3e 100755 (executable)
@@ -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: