From 1b46a9d0148cbf0b84f6e43eb4b14ee7ff43f0fd Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 12 Oct 2012 13:00:39 +0200 Subject: [PATCH] Use any to determine if a package is relevant --- find_reduced.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/find_reduced.py b/find_reduced.py index a363d68..dea1fe5 100755 --- a/find_reduced.py +++ b/find_reduced.py @@ -84,8 +84,7 @@ for cat in os.listdir(portdir): deb = gen2deb.get("%s/%s"%(cat, pkg), []) # assure that the package is relevant - cont = [d for d in deb if d in debian_names] - if not cont: + if not any(d for d in deb if d in debian_names): continue pkgnames.append((cat, pkg, ver, rev))