Fix the priorities display in digraph.debug_print() so it shows the highest
authorZac Medico <zmedico@gentoo.org>
Wed, 4 Feb 2009 18:14:50 +0000 (18:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 4 Feb 2009 18:14:50 +0000 (18:14 -0000)
priority (since multiple priorities are now supported).

svn path=/main/trunk/; revision=12582

pym/portage/__init__.py

index 33e2956dd51662a80a335b7dc29668662dfb3ec2..cf0f35b136aa68519295dc180794b7b36b2bfb1e 100644 (file)
@@ -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