From: Zac Medico Date: Fri, 21 May 2010 02:31:20 +0000 (-0700) Subject: Fix depgraph.schedulerGraph() to break DepPriority.satisfied attributes X-Git-Tag: v2.2_rc68~587 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0066c26a37831f2fb3b1f9857b214ee77ee70b2b;p=portage.git Fix depgraph.schedulerGraph() to break DepPriority.satisfied attributes which reference installed Package instances. --- 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):