portdb = trees[eroot]['porttree'].dbapi
bindb = trees[eroot]["bintree"].dbapi
for x in myfiles:
- match_found = False
+ any_match = False
cp_exists = False
installed_match = vardb.match(x)
for installed in installed_match:
mypkgs.append((installed, "installed"))
- match_found = True
+ any_match = True
- if match_found:
+ if any_match:
continue
for db, pkg_type in ((portdb, "ebuild"), (bindb, "binary")):
matches = db.match(x)
matches.reverse()
for match in matches:
+ any_match = True
if pkg_type == "binary":
if db.bintree.isremote(match):
continue
if metadata["EAPI"] not in ("0", "1", "2", "3") and \
"info" in metadata["DEFINED_PHASES"].split():
mypkgs.append((match, pkg_type))
- match_found = True
break
- if not match_found:
+ if not any_match:
xinfo = '"%s"' % x.unevaluated_atom
# Discard null/ from failed cpv_expand category expansion.
xinfo = xinfo.replace("null/", "")