From 99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02 Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Thu, 31 Mar 2016 17:06:28 -0500 Subject: 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. --- pym/gentoolkit/eshowkw/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pym/gentoolkit/eshowkw') 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) -- cgit v1.2.3-65-gdbad