From 92b2aea5a38c29811c1069dde4d0bc2fec07781c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Jan 2011 20:03:51 -0800 Subject: [PATCH] REQUIRED_USE: when unsatisfied, show current USE --- pym/_emerge/depgraph.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 36faee329..dfb4fc98d 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -51,6 +51,7 @@ from _emerge.search import search from _emerge.SetArg import SetArg from _emerge.show_invalid_depstring_notice import show_invalid_depstring_notice from _emerge.UnmergeDepPriority import UnmergeDepPriority +from _emerge.UseFlagDisplay import pkg_use_display from _emerge.resolver.backtracking import Backtracker, BacktrackParameter from _emerge.resolver.slot_collision import slot_conflict_handler @@ -2444,9 +2445,10 @@ class depgraph(object): colorize("INFORM", xinfo) + \ colorize("BAD", " has unmet requirements.") + "\n", noiselevel=-1) - writemsg_stdout("- %s (REQUIRED_USE unsatisfied)\n" % \ - (output_cpv,), noiselevel=-1) - writemsg_stdout("\n The following use flag constraints " + \ + use_display = pkg_use_display(pkg, self._frozen_config.myopts) + writemsg_stdout("- %s %s\n" % (output_cpv, use_display), + noiselevel=-1) + writemsg_stdout("\n The following REQUIRED_USE flag constraints " + \ "are unsatisfied:\n", noiselevel=-1) writemsg_stdout(" %s\n" % \ human_readable_required_use(pkg.metadata["REQUIRED_USE"]), -- 2.26.2