Fix the reverse dependency display for --prune when there is now real parent. (trunk...
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 07:49:43 +0000 (07:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 07:49:43 +0000 (07:49 -0000)
svn path=/main/branches/2.1.2/; revision=7352

bin/emerge

index 988580c4369f477010e6194258f46fcb547aed53..f9fdd09d614c4d28e8c3ae6e6234a8c93d57dddf 100755 (executable)
@@ -5472,6 +5472,11 @@ def action_depclean(settings, trees, ldpath_mtimes,
 
        def show_parents(child_node):
                parent_nodes = graph.parent_nodes(child_node)
+               if not parent_nodes:
+                       # With --prune, the highest version can be pulled in without any
+                       # real parent since all installed packages are pulled in.  In that
+                       # case there's nothing to show here.
+                       return
                parent_nodes.sort()
                msg = []
                msg.append("  %s pulled in by:\n" % str(child_node))