From: Zac Medico Date: Tue, 3 Oct 2006 00:27:45 +0000 (-0000) Subject: Fix priority logic in digraph.add(). X-Git-Tag: v2.1.2~729 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f9c6f66ba40881060ab0e8acb1e3f95ed2e52483;p=portage.git Fix priority logic in digraph.add(). svn path=/main/trunk/; revision=4575 --- diff --git a/pym/portage.py b/pym/portage.py index 620ef06bd..73b88a838 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -340,13 +340,13 @@ class digraph: self.order.append(parent) if parent in self.nodes[node][1]: - if priority > self.SOFT: + if priority > self.nodes[node][1][parent]: self.nodes[node][1][parent] = priority else: self.nodes[node][1][parent] = priority if node in self.nodes[parent][0]: - if priority > self.SOFT: + if priority > self.nodes[parent][0][node]: self.nodes[parent][0][node] = priority else: self.nodes[parent][0][node] = priority