summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-30 03:59:28 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-30 03:59:28 +0000
commit15e48fc0654c385a1b1dbc8055932a8f58368eae (patch)
treed0c44760a277dcc3833e3aa10a616be41828a319
parent03fb1641a4e47a5c467857e314f0f19a53d8bd9d (diff)
downloadportage-15e48fc0654c385a1b1dbc8055932a8f58368eae.tar.gz
portage-15e48fc0654c385a1b1dbc8055932a8f58368eae.tar.bz2
portage-15e48fc0654c385a1b1dbc8055932a8f58368eae.zip
Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a cpv.
svn path=/main/trunk/; revision=9615
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index cb369a6b9..878df06c9 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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: