Use any to determine if a package is relevant
This commit is contained in:
parent
d9a5257255
commit
1b46a9d014
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue