diff options
-rw-r--r-- | apkkit/io/apkfile.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apkkit/io/apkfile.py b/apkkit/io/apkfile.py index 4710d0c..6256e55 100644 --- a/apkkit/io/apkfile.py +++ b/apkkit/io/apkfile.py @@ -48,11 +48,8 @@ def _tar_filter(filename): """tarfile exclusion predicate that calls all defined filter functions.""" global FILTERS - for func in FILTERS: - if func(filename): - return True - - return False + results = [func(filename) for func in FILTERS] + return all(results) def _ensure_no_debug(filename): |