depgraph: unevaluated parent atom in debug output
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Jan 2012 16:32:53 +0000 (08:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Jan 2012 16:32:53 +0000 (08:32 -0800)
pym/_emerge/depgraph.py

index 81b1743791d6e21c0f24d96c14e08e0700814221..19daa4eb86843c58972786c2f73a86d378007eda 100644 (file)
@@ -1058,9 +1058,12 @@ class depgraph(object):
                        else:
                                # Display the specific atom from SetArg or
                                # Package types.
+                               uneval = ""
+                               if dep.atom is not dep.atom.unevaluated_atom:
+                                       uneval = " (%s)" % (dep.atom.unevaluated_atom,)
                                writemsg_level(
-                                       "%s%s required by %s\n" %
-                                       ("Parent Dep:".ljust(15), dep.atom, myparent),
+                                       "%s%s%s required by %s\n" %
+                                       ("Parent Dep:".ljust(15), dep.atom, uneval, myparent),
                                        level=logging.DEBUG, noiselevel=-1)
 
                # Ensure that the dependencies of the same package