# pulled in by update or depclean.
providers = portdb.mysettings.getvirtuals().get(
portage.dep_getkey(system_atom))
- if providers and len(providers) == 1 and providers[0] == cp:
+ if providers and len(providers) == 1 and \
+ portage.dep_getkey(providers[0]) == cp:
return None
return new_world_atom
mychoices = myvirtuals.get(mykey, None)
if mychoices:
if len(mychoices) == 1:
- a = x.replace(mykey, mychoices[0])
+ a = x.replace(mykey, dep_getkey(mychoices[0]), 1)
else:
if x[0]=="!":
# blocker needs "and" not "or(||)".
else:
a=['||']
for y in mychoices:
- a.append(x.replace(mykey, y))
+ a.append(x.replace(mykey, dep_getkey(y), 1))
newsplit.append(a)
else:
newsplit.append(x)
a.append(portage.dep.Atom(x.replace(mykey, y, 1)))
else:
for y in mychoices:
- new_atom = portage.dep.Atom(x.replace(mykey, y, 1))
+ new_atom = portage.dep.Atom(
+ x.replace(mykey, dep_getkey(y), 1))
matches = portdb.match(new_atom)
# portdb is an instance of depgraph._dep_check_composite_db, so
# USE conditionals are already evaluated.
if not a and not isblocker and mychoices:
# Check for a virtual package.provided match.
for y in mychoices:
- new_atom = portage.dep.Atom(x.replace(mykey, y, 1))
+ new_atom = portage.dep.Atom(x.replace(mykey, dep_getkey(y), 1))
if match_from_list(new_atom,
pprovideddict.get(new_atom.cp, [])):
a.append(new_atom)