From: Aneurin Price Date: Thu, 12 Jan 2012 16:15:23 +0000 (+0000) Subject: cmd/drecurse: correctly pass excluded_paths to recursive_dirlist X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=02980485f6c027daf2323087dedeb3cbf1e69d58;p=packages%2Fb%2Fbup.git cmd/drecurse: correctly pass excluded_paths to recursive_dirlist 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 Reviewed-by: Rob Browning --- diff --git a/cmd/drecurse-cmd.py b/cmd/drecurse-cmd.py index 5be71b5..f804185 100755 --- a/cmd/drecurse-cmd.py +++ b/cmd/drecurse-cmd.py @@ -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():