From 0066c26a37831f2fb3b1f9857b214ee77ee70b2b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 20 May 2010 19:31:20 -0700 Subject: [PATCH] Fix depgraph.schedulerGraph() to break DepPriority.satisfied attributes which reference installed Package instances. --- pym/_emerge/depgraph.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index a9ef72995..6ed978717 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3303,6 +3303,16 @@ class depgraph(object): if self._dynamic_config._scheduler_graph is None: self.altlist() self.break_refs(self._dynamic_config._scheduler_graph.order) + + # Break DepPriority.satisfied attributes which reference + # installed Package instances. + for parents, children, node in \ + self._dynamic_config._scheduler_graph.nodes.values(): + for priorities in chain(parents.values(), children.values()): + for priority in priorities: + if priority.satisfied: + priority.satisfied = True + return self._dynamic_config._scheduler_graph def break_refs(self, nodes): -- 2.26.2