summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index ee2389129..06060b0fd 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2267,8 +2267,9 @@ class depgraph(object):
# This is descending order, and we're not
# interested in any versions <= pkg given.
break
- higher_slot = visible_pkg
- break
+ if pkg.slot_atom != visible_pkg.slot_atom:
+ higher_slot = visible_pkg
+ break
if higher_slot is not None:
continue
for arg in atom_arg_map[(atom, pkg.root)]: