From: Zac Medico Date: Sun, 22 Jul 2007 07:49:43 +0000 (-0000) Subject: Fix the reverse dependency display for --prune when there is now real parent. (trunk... X-Git-Tag: v2.1.3~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35528f1b5fbca6dc42092f2bd0d79ae0680ab4ab;p=portage.git Fix the reverse dependency display for --prune when there is now real parent. (trunk r7351) svn path=/main/branches/2.1.2/; revision=7352 --- diff --git a/bin/emerge b/bin/emerge index 988580c43..f9fdd09d6 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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))