From: Zac Medico Date: Thu, 16 Jun 2011 15:35:16 +0000 (-0700) Subject: expand_set_args: add root SetArg nodes to graph X-Git-Tag: v2.2.0_alpha42~55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f159f67ceee78e7219d23bec41139df2f160b94;p=portage.git 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. --- 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