From: Zac Medico Date: Sat, 10 Sep 2011 14:31:10 +0000 (-0700) Subject: depgraph: use Atom.with_slot() to match virtuals X-Git-Tag: v2.2.0_alpha56~38 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=569bbe4747eceb70b3225101ec9c538b1db475aa;p=portage.git depgraph: use Atom.with_slot() to match virtuals This ensures that USE deps and repo deps are preserved here. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 928f8dc88..3cb85dcef 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -6557,7 +6557,7 @@ class _dep_check_composite_db(dbapi): ret.append(pkg.cpv) slots.remove(pkg.metadata["SLOT"]) while slots: - slot_atom = Atom("%s:%s" % (atom.cp, slots.pop())) + slot_atom = atom.with_slot(slots.pop()) pkg, existing = self._depgraph._select_package( self._root, slot_atom) if not pkg: