summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/emerge b/bin/emerge
index 51f2e1981..e4fec2eeb 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1108,13 +1108,9 @@ class depgraph:
print "ebuild:",myeb
print "binpkg:",myeb_pkg
- def cmpsplit(cpv):
- mysplit = portage.catpkgsplit(cpv)
- return [mysplit[0] + "/" + mysplit[1],
- mysplit[2], mysplit[3]]
-
if myeb and myeb_pkg:
- if portage.pkgcmp(cmpsplit(myeb), cmpsplit(myeb_pkg)) == 0:
+ bestmatch = portage.best([myeb, myeb_pkg])
+ if bestmatch == myeb_pkg:
myeb = None
else:
myeb_pkg = None