summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-18 14:57:08 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-18 14:57:08 -0700
commit7307975a8f4ee465a27ed7cd28fde5db22607248 (patch)
tree23a7f1f9791cf02340d3f58af71ac376ac1db184
parent62da1be30a7b9a9d550e63a18f0c6736f0801b59 (diff)
downloadportage-7307975a8f4ee465a27ed7cd28fde5db22607248.tar.gz
portage-7307975a8f4ee465a27ed7cd28fde5db22607248.tar.bz2
portage-7307975a8f4ee465a27ed7cd28fde5db22607248.zip
get_dep_chain: fix KeyError if start_node is root
-rw-r--r--pym/_emerge/depgraph.py2
1 files changed, 1 insertions, 1 deletions
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.