From 06780db71fde5fecee9243660ffa484d17750bdf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 28 Jun 2007 02:48:27 +0000 Subject: [PATCH] When filling in "nomerge" nodes for --tree display, stop at a node that is an argument or a direct member of a set that has been specified as an argument (system or world). (trunk r7071) svn path=/main/branches/2.1.2/; revision=7072 --- bin/emerge | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index d9bde5e11..443f5d7e0 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2443,7 +2443,12 @@ class depgraph: traversed_nodes = set() # prevent endless circles traversed_nodes.add(graph_key) def add_parents(current_node, ordered): - parent_nodes = mygraph.parent_nodes(current_node) + parent_nodes = None + # Do not traverse to parents if this node is an + # an argument or a direct member of a set that has + # been specified as an argument (system or world). + if current_node not in self._args_nodes: + parent_nodes = mygraph.parent_nodes(current_node) if parent_nodes: child_nodes = set(mygraph.child_nodes(current_node)) selected_parent = None -- 2.26.2