expand_set_args: add root SetArg nodes to graph
authorZac Medico <zmedico@gentoo.org>
Thu, 16 Jun 2011 15:35:16 +0000 (08:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 16 Jun 2011 15:35:16 +0000 (08:35 -0700)
This prevents get_dep_chain from triggering a KeyError some cases as
reported in bug #371767.

pym/_emerge/depgraph.py

index da48f2affefa2a8ac7f5eb3e883a7e740e4af6b7..773a256595f351214a4b4a06026d53bcf3f03821 100644 (file)
@@ -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