Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a cpv.
authorZac Medico <zmedico@gentoo.org>
Sun, 30 Mar 2008 06:57:12 +0000 (06:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 30 Mar 2008 06:57:12 +0000 (06:57 -0000)
svn path=/main/trunk/; revision=9623

pym/_emerge/__init__.py

index 91ec5dd0f815523d31d79384f809debdf863a334..f87b7c3dae5859c53a33f22e1b47f5027841beb8 100644 (file)
@@ -3891,7 +3891,8 @@ class depgraph(object):
                                                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: