diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-06-16 08:35:16 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-06-16 08:35:16 -0700 |
commit | 3f159f67ceee78e7219d23bec41139df2f160b94 (patch) | |
tree | 04514029e01e7ba7554372db4b59fa4542c1ff00 | |
parent | cbdf030c3a61eaf323faff8f25e23989efb70248 (diff) | |
download | portage-3f159f67ceee78e7219d23bec41139df2f160b94.tar.gz portage-3f159f67ceee78e7219d23bec41139df2f160b94.tar.bz2 portage-3f159f67ceee78e7219d23bec41139df2f160b94.zip |
expand_set_args: add root SetArg nodes to graph
This prevents get_dep_chain from triggering a KeyError some cases as
reported in bug #371767.
-rw-r--r-- | pym/_emerge/depgraph.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index da48f2aff..773a25659 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -846,6 +846,11 @@ class depgraph(object): if arg in traversed_set_args: continue traversed_set_args.add(arg) + + if add_to_digraph: + self._dynamic_config.digraph.add(arg, None, + priority=BlockerDepPriority.instance) + yield arg # Traverse nested sets and add them to the stack |