From 5046dfa878d68d5dd21b7c9fcf7877ee8a2b39c1 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Tue, 8 Mar 2016 02:21:27 -0600 Subject: apkfile: Fix logic error --- apkkit/io/apkfile.py | 7 ++----- 1 file 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): -- cgit v1.2.3-70-g09d2