]> arthur.barton.de Git - bup.git/commitdiff
fsck-cmd.py: simplify do_pack() else clause.
authorRob Browning <rlb@defaultvalue.org>
Sun, 5 May 2013 21:29:35 +0000 (16:29 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 6 May 2013 02:46:35 +0000 (21:46 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/fsck-cmd.py

index fb7099ecd27a677cde5334aef1881ce5b175af9f..794c755b4c424d468cae7210a8447b16c0b51c0e 100755 (executable)
@@ -119,10 +119,7 @@ def do_pack(base, last, par2_exists):
                 action_result = 'ok'
     else:
         assert(opt.generate and (not par2_ok or par2_exists))
-        if par2_ok:
-            action_result = 'exists'
-        else:
-            action_result = 'skipped'
+        action_result = 'exists' if par2_exists else 'skipped'
     if opt.verbose:
         print last, action_result
     return code