aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-10 16:40:22 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-09-10 16:40:22 (GMT)
commit8dbf44f4ca3390d2232b83de52dd630a47126a5e (patch)
treeacd8ba306183f33d760779d0652d2398806a6049
parentrepoman: fix getstatusoutput more, bug #310789 (diff)
downloadportage-8dbf44f4ca3390d2232b83de52dd630a47126a5e.zip
portage-8dbf44f4ca3390d2232b83de52dd630a47126a5e.tar.gz
portage-8dbf44f4ca3390d2232b83de52dd630a47126a5e.tar.bz2
Improve ignored binpkg display for bug #434540.
-rw-r--r--pym/_emerge/depgraph.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 3b0f4a6..e388065 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 = [
"",