Use any to determine if a package is relevant

This commit is contained in:
Ewoud Kohl van Wijngaarden 2012-10-12 13:00:39 +02:00 committed by josch
parent d9a5257255
commit 1b46a9d014

View file

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