diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:40:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:40:20 +0000 |
commit | 2f6bbbe50964b89e2d17aa51cb0f07ecca19f003 (patch) | |
tree | a13b9b550b0427d44c59844a9d13befbb6d9a5e7 | |
parent | 861b535aeadc3ebd0282e3e77cc04e62212e9b00 (diff) | |
download | portage-2f6bbbe50964b89e2d17aa51cb0f07ecca19f003.tar.gz portage-2f6bbbe50964b89e2d17aa51cb0f07ecca19f003.tar.bz2 portage-2f6bbbe50964b89e2d17aa51cb0f07ecca19f003.zip |
Fix the priorities display in digraph.debug_print() so it shows the highest
priority (since multiple priorities are now supported). (trunk r12582)
svn path=/main/branches/2.1.6/; revision=12863
-rw-r--r-- | pym/portage/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 27275ecaf..a3884cc56 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -600,9 +600,8 @@ class digraph(object): output("depends on\n") else: output("(no children)\n") - for child in self.nodes[node][0]: - output(" %s (%s)\n" % \ - (child, self.nodes[node][0][child],)) + for child, priorities in self.nodes[node][0].iteritems(): + output(" %s (%s)\n" % (child, priorities[-1],)) #parse /etc/env.d and generate /etc/profile.env |