From 19f9faeb0055dadb7f76a953d51acec8373c6edb Mon Sep 17 00:00:00 2001 From: Christian Cornelssen Date: Tue, 18 Feb 2020 15:43:51 +0100 Subject: [PATCH] cmd/fsck-cmd.py: Do not warn about empty par2 output With a recent `par2` installed, `bup fsck -v` outputs messages like Unexpected par2 error output ''Assuming par2 supports parallel processing when there was no error output and the exit status was zero. Stop printing the warning in that case. Signed-off-by: Christian Cornelssen [rlb@defaultvalue.org: add information from the pr to commit message] Reviewed-by: Rob Browning Tested-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 b97a1d7..a241ac5 100755 --- a/cmd/fsck-cmd.py +++ b/cmd/fsck-cmd.py @@ -61,7 +61,7 @@ def is_par2_parallel(): _, err = p.communicate() parallel = p.returncode == 0 if opt.verbose: - if err != b'Invalid option specified: -t1\n': + if len(err) > 0 and err != b'Invalid option specified: -t1\n': log('Unexpected par2 error output\n') log(repr(err)) if parallel: -- 2.39.2