summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-12-31 15:52:46 -0800
committerZac Medico <zmedico@gentoo.org>2012-12-31 15:52:46 -0800
commit925eadd210dbc3802000d92f458ae7029832273e (patch)
treeca6392e0dcde883ded0b737b26ccc0bf8e0b0a33
parent43ec4d594870656fa2fb0ef169912e288d66101a (diff)
downloadportage-925eadd210dbc3802000d92f458ae7029832273e.tar.gz
portage-925eadd210dbc3802000d92f458ae7029832273e.tar.bz2
portage-925eadd210dbc3802000d92f458ae7029832273e.zip
emerge --depclean: clarify unsatisfied atoms
If the atom is unsatisfied due to a USE dep that's only visible in the unevaluated form, then display the unevaluated form.
-rw-r--r--pym/_emerge/actions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index a498ae49d..6a3815a9c 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -829,7 +829,12 @@ def calc_depclean(settings, trees, ldpath_mtimes,
msg.append("the following required packages not being installed:")
msg.append("")
for atom, parent in unresolvable:
- msg.append(" %s pulled in by:" % (atom,))
+ if atom != atom.unevaluated_atom and \
+ vardb.match(_unicode(atom)):
+ msg.append(" %s (%s) pulled in by:" %
+ (atom.unevaluated_atom, atom))
+ else:
+ msg.append(" %s pulled in by:" % (atom,))
msg.append(" %s" % (parent,))
msg.append("")
msg.extend(textwrap.wrap(