From 3f159f67ceee78e7219d23bec41139df2f160b94 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 16 Jun 2011 08:35:16 -0700 Subject: [PATCH] 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. --- pym/_emerge/depgraph.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.26.2