diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-04 18:14:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-04 18:14:50 +0000 |
commit | 465f960ebcd0c01455b0397de37b656ab5e44804 (patch) | |
tree | 5d718a661c1336c0daded41ecdf485c83be44c92 | |
parent | d3c5ad679c754276047dfa96926ea8fe6390bcb5 (diff) | |
download | portage-465f960ebcd0c01455b0397de37b656ab5e44804.tar.gz portage-465f960ebcd0c01455b0397de37b656ab5e44804.tar.bz2 portage-465f960ebcd0c01455b0397de37b656ab5e44804.zip |
Fix the priorities display in digraph.debug_print() so it shows the highest
priority (since multiple priorities are now supported).
svn path=/main/trunk/; revision=12582
-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 33e2956dd..cf0f35b13 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 |