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

pym/_emerge/__init__.py

index cb369a6b9dd2a3d8e878b320d90e9e0510dcf64c..878df06c9ceebaa7fb67313911af3f75d0086106 100644 (file)
@@ -3702,7 +3702,8 @@ class depgraph(object):
                                        if myinslotlist:
                                                myoldbest = portage.best(myinslotlist)
                                                addl = "   " + fetch
-                                               if portage.pkgcmp(portage.pkgsplit(x[2]), portage.pkgsplit(myoldbest)) < 0:
+                                               if not portage.dep.cpvequal(pkg_key,
+                                                       portage.best([pkg_key, myoldbest])):
                                                        # Downgrade in slot
                                                        addl += turquoise("U")+blue("D")
                                                        if ordered: