From a17103b6488f7d4f3e7638e834ad079c98dba89f Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 13 Nov 2008 17:36:33 -0500 Subject: add support for untrack lists of files (or file globs) --- func/minion/modules/filetracker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/func/minion/modules/filetracker.py b/func/minion/modules/filetracker.py index 398aefd..c9ed6ed 100644 --- a/func/minion/modules/filetracker.py +++ b/func/minion/modules/filetracker.py @@ -110,8 +110,9 @@ class FileTracker(func_module.FuncModule): filehash = self.__load() filenames = filehash.keys() for filename in filenames: - if fnmatch.fnmatch(filename, file_name_globs): - del filehash[filename] + for file_name_glob in file_name_globs: + if fnmatch.fnmatch(filename, file_name_glob): + del filehash[filename] self.__save(filehash) return 1 -- cgit