depgraph: use Atom.with_slot() to match virtuals
authorZac Medico <zmedico@gentoo.org>
Sat, 10 Sep 2011 14:31:10 +0000 (07:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 10 Sep 2011 14:31:10 +0000 (07:31 -0700)
This ensures that USE deps and repo deps are preserved here.

pym/_emerge/depgraph.py

index 928f8dc88a66e6f85304c1330b9e8f5203f10253..3cb85dcef1e00458f4709093106ff4c0d8ad6ab9 100644 (file)
@@ -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: