summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/depgraph.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 3670899de..6c38806fa 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -892,18 +892,18 @@ class depgraph(object):
self._add_parent_atom(pkg, parent_atom)
self._process_slot_conflicts()
+ if pkg > existing_node:
+ to_be_masked = pkg
+ else:
+ to_be_masked = existing_node
+
parent_atoms = \
- self._dynamic_config._parent_atoms.get(pkg, set())
+ self._dynamic_config._parent_atoms.get(to_be_masked, set())
if parent_atoms:
conflict_atoms = self._dynamic_config._slot_conflict_parent_atoms.intersection(parent_atoms)
if conflict_atoms:
parent_atoms = conflict_atoms
- if pkg > existing_node:
- to_be_masked = pkg
- else:
- to_be_masked = existing_node
-
if pkg.cpv == existing_node.cpv:
# We only care about the parent atoms
# when they trigger a downgrade.