summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 fe810ab78..1dd0575d8 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -5404,13 +5404,18 @@ class depgraph(object):
print "\nemerge: there are no ebuilds to satisfy "+green(xinfo)+"."
# Show parent nodes and the argument that pulled them in.
+ traversed_nodes = set()
node = myparent
msg = []
while node is not None:
+ traversed_nodes.add(node)
msg.append('(dependency required by "%s" [%s])' % \
(colorize('INFORM', str(node.cpv)), node.type_name))
parent = None
for parent in self.digraph.parent_nodes(node):
+ if parent in traversed_nodes:
+ parent = None
+ continue
if isinstance(parent, DependencyArg):
msg.append('(dependency required by "%s" [argument])' % \
(colorize('INFORM', str(parent))))