When identifying a sys-apps/portage node, compare category too (not just
authorZac Medico <zmedico@gentoo.org>
Tue, 1 Apr 2008 05:59:57 +0000 (05:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 1 Apr 2008 05:59:57 +0000 (05:59 -0000)
"portage".

svn path=/main/trunk/; revision=9660

pym/_emerge/__init__.py

index 166ea1cb64a0a929bebdf81cdea6a90d758c90b1..dbfebe1696d6a00b011f63d80d74bbda957af9b7 100644 (file)
@@ -3155,8 +3155,7 @@ class depgraph(object):
                        get_nodes = mygraph.leaf_nodes
                        for node in mygraph.order:
                                if node.root == "/" and \
-                                       "portage" == portage.catsplit(
-                                       portage.cpv_getkey(node.cpv))[-1]:
+                                       "sys-apps/portage" == portage.cpv_getkey(node.cpv):
                                        portage_node = node
                                        asap_nodes.append(node)
                                        break