aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2016-03-31 17:06:28 -0500
committerPaul Varner <fuzzyray@gentoo.org>2016-03-31 17:06:28 -0500
commit99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02 (patch)
tree0ce0650df4ab295e0f3d23af0c1ce9a3b7579111
parentSort eshowkw headers by arch status first (diff)
downloadgentoolkit-99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02.tar.gz
gentoolkit-99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02.tar.bz2
gentoolkit-99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02.zip
eshowkw: Imply prefix when specifing an arch
This fixes bug 578496. When a user specifies and architecture, we should just display it regardless of its prefix status.
-rw-r--r--pym/gentoolkit/eshowkw/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py
index d46a773..c00d7cb 100644
--- a/pym/gentoolkit/eshowkw/__init__.py
+++ b/pym/gentoolkit/eshowkw/__init__.py
@@ -100,6 +100,11 @@ def main(argv, indirect = False):
if not color and not sys.stdout.isatty():
# disable colors
porto.nocolor()
+
+ # Imply prefix if user specified any architectures (Bug 578496)
+ if len(highlight_arch) > 0:
+ prefix = True
+
keywords = keywords_header(prefix, highlight_arch, order)
if len(package) > 0:
mysettings = portc(local_config=False)