diff options
author | Paul Varner <fuzzyray@gentoo.org> | 2016-03-31 17:06:28 -0500 |
---|---|---|
committer | Paul Varner <fuzzyray@gentoo.org> | 2016-03-31 17:06:28 -0500 |
commit | 99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02 (patch) | |
tree | 0ce0650df4ab295e0f3d23af0c1ce9a3b7579111 | |
parent | Sort eshowkw headers by arch status first (diff) | |
download | gentoolkit-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__.py | 5 |
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) |