]> arthur.barton.de Git - bup.git/commitdiff
index-cmd.py: pass exclude_rxs as an argument to update_index.
authorRob Browning <rlb@defaultvalue.org>
Sat, 2 Nov 2013 16:15:15 +0000 (11:15 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 2 Nov 2013 16:36:34 +0000 (11:36 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/index-cmd.py

index 4904c0110747f0f23b7babb90668691b50b17281..539bc50561cf1e7e130a1137db434e9d889e5d37 100755 (executable)
@@ -62,7 +62,7 @@ def clear_index(indexfile):
                 raise
 
 
-def update_index(top, excluded_paths):
+def update_index(top, excluded_paths, exclude_rxs):
     # tmax and start must be epoch nanoseconds.
     tmax = (time.time() - 1) * 10**9
     ri = index.Reader(indexfile)
@@ -234,7 +234,7 @@ if opt.update:
     if not extra:
         o.fatal('update mode (-u) requested but no paths given')
     for (rp,path) in paths:
-        update_index(rp, excluded_paths)
+        update_index(rp, excluded_paths, exclude_rxs)
 
 if opt['print'] or opt.status or opt.modified:
     for (name, ent) in index.Reader(indexfile).filter(extra or ['']):