diff --git a/empack/file_patterns.py b/empack/file_patterns.py index 744eac0..f4c8db6 100644 --- a/empack/file_patterns.py +++ b/empack/file_patterns.py @@ -35,10 +35,7 @@ def patter_from_dict(**d): self.exclude_patterns = [patter_from_dict(**p) for p in exclude_patterns] def match(self, path): - for ep in self.exclude_patterns: - if ep.match(path): - return False - return True + return all(not ep.match(path) for ep in self.exclude_patterns) class PkgFileFilter: