From f9c6f66ba40881060ab0e8acb1e3f95ed2e52483 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Oct 2006 00:27:45 +0000 Subject: [PATCH] Fix priority logic in digraph.add(). svn path=/main/trunk/; revision=4575 --- pym/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2