diff options
author | Adrian Likins <alikins@redhat.com> | 2008-11-13 17:36:33 -0500 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-11-13 17:36:33 -0500 |
commit | a17103b6488f7d4f3e7638e834ad079c98dba89f (patch) | |
tree | b61aa5190e91f3359e68dc8f4d8679c19ba77abc | |
parent | cfd4b495256b5bb0b9661c70cc82baa1830af0c2 (diff) | |
download | func-a17103b6488f7d4f3e7638e834ad079c98dba89f.tar.gz func-a17103b6488f7d4f3e7638e834ad079c98dba89f.tar.xz func-a17103b6488f7d4f3e7638e834ad079c98dba89f.zip |
add support for untrack lists of files (or file globs)
-rw-r--r-- | func/minion/modules/filetracker.py | 5 |
1 files 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 |