summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-04 19:20:37 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-04 19:37:29 -0800
commitbcbf792209142e84e164991dc13843a3cb471e9f (patch)
treecd90c2b54ea9893a1b2e58d8bc218c3d1068f361
parentRevert "parse_metadata_use(): omit empty text tokens." (diff)
downloadportage-2.1.9.36.tar.gz
portage-2.1.9.36.tar.bz2
portage-2.1.9.36.zip
get_dep_chain: add "set" node typev2.1.9.36
-rw-r--r--pym/_emerge/depgraph.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 7b74a265e..d41ab825f 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2213,7 +2213,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]:
@@ -2655,7 +2659,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") % \