summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-03 00:27:45 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-03 00:27:45 +0000
commitf9c6f66ba40881060ab0e8acb1e3f95ed2e52483 (patch)
treee294fc9c7af3a1b32cd3492797fd014224d20594
parent4dc0fe373246e2b593f4ce8858bead44d6cc3434 (diff)
downloadportage-f9c6f66ba40881060ab0e8acb1e3f95ed2e52483.tar.gz
portage-f9c6f66ba40881060ab0e8acb1e3f95ed2e52483.tar.bz2
portage-f9c6f66ba40881060ab0e8acb1e3f95ed2e52483.zip
Fix priority logic in digraph.add().
svn path=/main/trunk/; revision=4575
-rw-r--r--pym/portage.py4
1 files 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