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

svn path=/main/branches/2.1.2/; revision=9661

bin/emerge

index 543309d4f8eaaae821eb54c68bfd68cda57e6263..46893f11f5c9c69ca0028e463f988f310b56ff15 100755 (executable)
@@ -2804,8 +2804,7 @@ class depgraph:
                        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