Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a cpv.
authorZac Medico <zmedico@gentoo.org>
Sun, 30 Mar 2008 06:57:33 +0000 (06:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 30 Mar 2008 06:57:33 +0000 (06:57 -0000)
(trunk r9623)

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

bin/emerge

index f62ff44c1e294bdaee3efd1ebd76bb170982c6e8..a22aa6b7bfb6a750994880fdd8858a719b6341da 100755 (executable)
@@ -3579,7 +3579,8 @@ class depgraph:
                                                show_repos = True
                                                verboseadd += teal("[%s]" % repoadd)
 
-                               xs = list(portage.pkgsplit(x[2]))
+                               xs = [portage.cpv_getkey(pkg_key)] + \
+                                       list(portage.catpkgsplit(pkg_key)[2:])
                                if xs[2] == "r0":
                                        xs[2] = ""
                                else: