diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-04 19:20:37 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-04 19:20:37 -0800 |
commit | 4d6d55b00d1e08453397c37f6b986c60175fd30f (patch) | |
tree | c1580356e83cb8e813a7baf1fb7a8211c777a9de | |
parent | c202f11dc844edc8dea4ececc6ac8590af903cf0 (diff) | |
download | portage-4d6d55b00d1e08453397c37f6b986c60175fd30f.tar.gz portage-4d6d55b00d1e08453397c37f6b986c60175fd30f.tar.bz2 portage-4d6d55b00d1e08453397c37f6b986c60175fd30f.zip |
get_dep_chain: add "set" node type
-rw-r--r-- | pym/_emerge/depgraph.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index f13188939..6e8ca3156 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2199,7 +2199,11 @@ class depgraph(object): traversed_nodes.add(node) if isinstance(node, DependencyArg): - dep_chain.append((_unicode_decode("%s") % (node,), "argument")) + if self._dynamic_config.digraph.parent_nodes(node): + node_type = "set" + else: + node_type = "argument" + dep_chain.append((_unicode_decode("%s") % (node,), node_type)) elif node is not start_node: for ppkg, patom in all_parents[child]: @@ -2650,7 +2654,6 @@ class depgraph(object): # It's redundant to show parent for AtomArg since # it's the same as 'xinfo' displayed above. dep_chain = self._get_dep_chain(myparent, atom) - for node, node_type in dep_chain: msg.append('(dependency required by "%s" [%s])' % \ (colorize('INFORM', _unicode_decode("%s") % \ |