Gentoo Archives: gentoo-commits

From: Paul Varner <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eshowkw/
Date: Thu, 31 Mar 2016 22:10:26
Message-Id: 1459461988.99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02.fuzzyray@gentoo
1 commit: 99bdbe3d832a3dabb7e9fb9c50cb9c4e1baf2f02
2 Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 31 22:06:28 2016 +0000
4 Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 31 22:06:28 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=99bdbe3d
7
8 eshowkw: Imply prefix when specifing an arch
9
10 This fixes bug 578496. When a user specifies and architecture, we should
11 just display it regardless of its prefix status.
12
13 pym/gentoolkit/eshowkw/__init__.py | 5 +++++
14 1 file changed, 5 insertions(+)
15
16 diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py
17 index d46a773..c00d7cb 100644
18 --- a/pym/gentoolkit/eshowkw/__init__.py
19 +++ b/pym/gentoolkit/eshowkw/__init__.py
20 @@ -100,6 +100,11 @@ def main(argv, indirect = False):
21 if not color and not sys.stdout.isatty():
22 # disable colors
23 porto.nocolor()
24 +
25 + # Imply prefix if user specified any architectures (Bug 578496)
26 + if len(highlight_arch) > 0:
27 + prefix = True
28 +
29 keywords = keywords_header(prefix, highlight_arch, order)
30 if len(package) > 0:
31 mysettings = portc(local_config=False)