diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-27 22:38:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-27 22:38:53 +0000 |
commit | d0e8948832971c3498fdc2432704d42e3fb6734a (patch) | |
tree | ae145cb05007b0a957726a6991cc4aacec2b3a87 /pym/_emerge/depgraph.py | |
parent | 31e355508a74ca42b04fc9567592dbfd3ffc5fbd (diff) | |
download | portage-d0e8948832971c3498fdc2432704d42e3fb6734a.tar.gz portage-d0e8948832971c3498fdc2432704d42e3fb6734a.tar.bz2 portage-d0e8948832971c3498fdc2432704d42e3fb6734a.zip |
Handle a KeyError in depgraph._ordered_tree_display(), reported on irc by
romildo. (trunk r14901)
svn path=/main/branches/2.1.7/; revision=14906
Diffstat (limited to 'pym/_emerge/depgraph.py')
-rw-r--r-- | pym/_emerge/depgraph.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 684775296..f8775c6d5 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4691,7 +4691,11 @@ class depgraph(object): # an argument or a direct member of a set that has # been specified as an argument (system or world). if current_node not in self._dynamic_config._set_nodes: - parent_nodes = mygraph.parent_nodes(current_node) + try: + parent_nodes = mygraph.parent_nodes(current_node) + except KeyError: + # This can happen sometimes for blockers. + pass if parent_nodes: child_nodes = set(mygraph.child_nodes(current_node)) selected_parent = None |