]> arthur.barton.de Git - bup.git/commit
fsck: Hide error when probing par2 capabilities
authorGernot Schulz <news@gernot-schulz.com>
Fri, 22 Nov 2019 13:41:39 +0000 (14:41 +0100)
committerRob Browning <rlb@defaultvalue.org>
Fri, 29 Nov 2019 21:20:29 +0000 (15:20 -0600)
commit695b8c79987bd039f9ecd36d0d9249128b2a3ff4
tree46a35873acdded0ef6216d59b164cf31f892d237
parentda1560854fa6bbcdb669cee845d2ceb3804a2ecb
fsck: Hide error when probing par2 capabilities

bup-fsck checks for the availability of par2's -t1 option by executing
it (for the reason see dc10c9172e1197c77c246ea75aae63388dcd641e).  If
the option is unavailable, par2 returns an error ("Invalid option
specified: -t1") which is not muted by the -qq option.

To hide this harmless par2 error during bup-fsck invocations the
subprocess call needs to capture stderr.

Signed-off-by: Gernot Schulz <post@gernot-schulz.com>
[rlb@defaultvalue.org: expand abbreviated hash to full hash above]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/fsck-cmd.py