From: Zac Medico Date: Mon, 16 Oct 2006 18:18:33 +0000 (-0000) Subject: When unable to navigate around blockers, add them back to the main digraph so that... X-Git-Tag: v2.1.2~624 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=15d5b303c2d314f912f68b8084b1793ebc993632;p=portage.git 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 --- 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