]> arthur.barton.de Git - bup.git/commitdiff
do_midx_group: don't rely on global path variable
authorRob Browning <rlb@defaultvalue.org>
Sat, 6 Jun 2015 20:42:21 +0000 (15:42 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 6 Jun 2015 20:42:24 +0000 (15:42 -0500)
Right now path does happen to end up set to the same value as the outdir
argument, but we definitely shouldn't rely on that.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/midx-cmd.py

index a18707d8b3eb6a0e9dcb37a1cfdc053de0844990..5a7a6e34a10b555afd3cb1f2d1c671d3b8b682a9 100755 (executable)
@@ -223,7 +223,7 @@ def do_midx_group(outdir, infiles):
     for n,sublist in enumerate(groups):
         if len(groups) != 1:
             gprefix = 'Group %d: ' % (n+1)
-        rv = _do_midx(path, None, sublist, gprefix)
+        rv = _do_midx(outdir, None, sublist, gprefix)
         if rv:
             yield rv