]> arthur.barton.de Git - bup.git/commitdiff
cmd/drecurse: correctly pass excluded_paths to recursive_dirlist
authorAneurin Price <aneurin.price@gmail.com>
Thu, 12 Jan 2012 16:15:23 +0000 (16:15 +0000)
committerRob Browning <rlb@defaultvalue.org>
Fri, 17 Aug 2012 18:42:57 +0000 (13:42 -0500)
The excluded_paths argument was being passed as a positional argument,
but its position actually corresponded to the 'bup_dir' argument, so
'bup drecurse --exclude=/foo/bar /foo' has never worked.

Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/drecurse-cmd.py

index 5be71b5d1fd82df72db1157ef8ec666417c948e4..f80418592bc0c3f10343551f2467b87870ee3030 100755 (executable)
@@ -19,7 +19,7 @@ if len(extra) != 1:
 
 excluded_paths = drecurse.parse_excludes(flags)
 
-it = drecurse.recursive_dirlist(extra, opt.xdev, excluded_paths)
+it = drecurse.recursive_dirlist(extra, opt.xdev, excluded_paths=excluded_paths)
 if opt.profile:
     import cProfile
     def do_it():