diff options
author | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2016-03-08 02:21:27 -0600 |
---|---|---|
committer | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2016-03-08 02:21:27 -0600 |
commit | 5046dfa878d68d5dd21b7c9fcf7877ee8a2b39c1 (patch) | |
tree | e6a2195c40a83c3eb6de86bfd3ae339c25ffc719 | |
parent | 2f4c6f451554dce4c52d941a759d696f0b955122 (diff) | |
download | apkkit-5046dfa878d68d5dd21b7c9fcf7877ee8a2b39c1.tar.gz apkkit-5046dfa878d68d5dd21b7c9fcf7877ee8a2b39c1.tar.bz2 apkkit-5046dfa878d68d5dd21b7c9fcf7877ee8a2b39c1.tar.xz apkkit-5046dfa878d68d5dd21b7c9fcf7877ee8a2b39c1.zip |
apkfile: Fix logic error
-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): |