From 02980485f6c027daf2323087dedeb3cbf1e69d58 Mon Sep 17 00:00:00 2001 From: Aneurin Price Date: Thu, 12 Jan 2012 16:15:23 +0000 Subject: [PATCH 1/1] 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 --- cmd/drecurse-cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- 2.39.2