diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-14 07:29:33 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-14 07:29:33 -0800 |
commit | 2f2846acd57c549f14a2084fdd59628a35b15601 (patch) | |
tree | 81b53c4d26a6246ef49dbbb3537cf236f587cfb6 | |
parent | 35c1434375c21b3234cb7178ce8f78182aed58a7 (diff) | |
download | portage-2f2846acd57c549f14a2084fdd59628a35b15601.tar.gz portage-2f2846acd57c549f14a2084fdd59628a35b15601.tar.bz2 portage-2f2846acd57c549f14a2084fdd59628a35b15601.zip |
depgraph: fix KeyError in select_atoms
This happens if depstring evaluates to nothing.
-rw-r--r-- | pym/_emerge/depgraph.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 963387424..cacc8cc58 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2219,6 +2219,8 @@ class depgraph(object): raise portage.exception.InvalidDependString(mycheck[1]) if parent is None: selected_atoms = mycheck[1] + elif parent not in atom_graph: + selected_atoms = {parent : mycheck[1]} else: # Recursively traversed virtual dependencies, and their # direct dependencies, are considered to have the same |