Show unevaluated atom in blocker parent display.
authorZac Medico <zmedico@gentoo.org>
Sat, 15 Jun 2013 00:11:50 +0000 (17:11 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 15 Jun 2013 00:11:50 +0000 (17:11 -0700)
pym/_emerge/depgraph.py

index 40055843f062f795ce063ce2148da2af675a946d..c988ee64476643271d4b07b67b342ad893f6c385 100644 (file)
@@ -6734,7 +6734,14 @@ class depgraph(object):
                                        else:
                                                # Display the specific atom from SetArg or
                                                # Package types.
-                                               msg.append("%s required by %s" % (atom, parent))
+                                               if atom != atom.unevaluated_atom:
+                                                       # Show the unevaluated atom, since it can reveal
+                                                       # issues with conditional use-flags missing
+                                                       # from IUSE.
+                                                       msg.append("%s (%s) required by %s" %
+                                                               (atom.unevaluated_atom, atom, parent))
+                                               else:
+                                                       msg.append("%s required by %s" % (atom, parent))
                                        msg.append("\n")
 
                                msg.append("\n")