diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-19 08:25:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-19 08:25:12 +0000 |
commit | ba00a14d159d8e266b2cf29d4138627c5e0d0521 (patch) | |
tree | b3d13b9b7343ef1baedea856db8c65674d13a762 | |
parent | 0ab6d29d199faddc339c63f5b60315de5f184c19 (diff) | |
download | portage-ba00a14d159d8e266b2cf29d4138627c5e0d0521.tar.gz portage-ba00a14d159d8e266b2cf29d4138627c5e0d0521.tar.bz2 portage-ba00a14d159d8e266b2cf29d4138627c5e0d0521.zip |
Add edges to shown_edges at the first oportunity.
svn path=/main/trunk/; revision=6557
-rw-r--r-- | pym/emerge/__init__.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index d09aa5615..a18fbf833 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2414,14 +2414,11 @@ class depgraph: selected_parent = node break if selected_parent: - edge = (current_node, selected_parent) - if edge not in shown_edges: - traversed_nodes.add(selected_parent) - add_parents(selected_parent, False) + shown_edges.add((current_node, selected_parent)) + traversed_nodes.add(selected_parent) + add_parents(selected_parent, False) display_list.append((list(current_node), len(tree_nodes), ordered)) - if tree_nodes: - shown_edges.add((current_node, tree_nodes[-1])) tree_nodes.append(current_node) tree_nodes = [] add_parents(graph_key, True) |