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))