From: Zac Medico Date: Mon, 10 Sep 2012 16:40:22 +0000 (-0700) Subject: Improve ignored binpkg display for bug #434540. X-Git-Tag: v2.2.0_alpha126~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8dbf44f4ca3390d2232b83de52dd630a47126a5e;p=portage.git Improve ignored binpkg display for bug #434540. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 3b0f4a61e..e388065fc 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -613,11 +613,17 @@ class depgraph(object): "due to non matching USE:\n\n", noiselevel=-1) for pkg, flags in self._dynamic_config.ignored_binaries.items(): - writemsg(" =%s" % pkg.cpv, noiselevel=-1) + flag_display = [] + for flag in sorted(flags): + if flag not in pkg.use.enabled: + flag = "-" + flag + flag_display.append(flag) + flag_display = " ".join(flag_display) + # The user can paste this line into package.use + writemsg(" =%s %s" % (pkg.cpv, flag_display), noiselevel=-1) if pkg.root_config.settings["ROOT"] != "/": - writemsg(" for %s" % (pkg.root,), noiselevel=-1) - writemsg("\n use flag(s): %s\n" % ", ".join(sorted(flags)), - noiselevel=-1) + writemsg(" # for %s" % (pkg.root,), noiselevel=-1) + writemsg("\n", noiselevel=-1) msg = [ "",