From: Zac Medico Date: Sun, 18 Sep 2011 21:57:08 +0000 (-0700) Subject: get_dep_chain: fix KeyError if start_node is root X-Git-Tag: v2.2.0_alpha59~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7307975a8f4ee465a27ed7cd28fde5db22607248;p=portage.git get_dep_chain: fix KeyError if start_node is root --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 400207e4e..deda44157 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2704,7 +2704,7 @@ class depgraph(object): traversed_nodes.add(start_node) start_node_parent_atoms = {} - for ppkg, patom in all_parents[node]: + for ppkg, patom in all_parents.get(node, []): # Get a list of suitable atoms. For use deps # (aka unsatisfied_dependency is not None) we # need that the start_node doesn't match the atom.