From 15d5b303c2d314f912f68b8084b1793ebc993632 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 16 Oct 2006 18:18:33 +0000 Subject: [PATCH] When unable to navigate around blockers, add them back to the main digraph so that the --tree display can show them properly. This fixes the KeyError reported in comment #15 of bug #151331 svn path=/main/trunk/; revision=4726 --- bin/emerge | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/emerge b/bin/emerge index 4d700ef19..86bf640b0 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1457,8 +1457,10 @@ class depgraph: if not myblockers.child_nodes(blocker): myblockers.remove(blocker) - if not myblockers.is_empty(): - retlist.extend([node.split() for node in myblockers.root_nodes()]) + for node in myblockers.root_nodes(): + retlist.append(node.split()) + for parent in self.blocker_parents[node]: + self.digraph.add(node, parent) return retlist -- 2.26.2