summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-22 07:49:14 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-22 07:49:14 +0000
commitb143afc2a5b8e4ababd6ab9ce57d5a69d24dc12d (patch)
tree1471a61a7708207588ad5b57a796bc0ef34d06d5
parented6b9d621e14b1c374653eace671f08b74285fc2 (diff)
downloadportage-b143afc2a5b8e4ababd6ab9ce57d5a69d24dc12d.tar.gz
portage-b143afc2a5b8e4ababd6ab9ce57d5a69d24dc12d.tar.bz2
portage-b143afc2a5b8e4ababd6ab9ce57d5a69d24dc12d.zip
Fix the reverse dependency display for --prune when there is now real parent.
svn path=/main/trunk/; revision=7351
-rw-r--r--pym/emerge/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index d40957f9c..054d90661 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -5509,6 +5509,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))