Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eshowkw/
Date: Fri, 26 Jan 2018 23:25:45
Message-Id: 1516978250.ed4a76633d69d6312b8572bc16cc758cbc36b94e.mgorny@gentoo
1 commit: ed4a76633d69d6312b8572bc16cc758cbc36b94e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 23 12:12:59 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 26 14:50:50 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=ed4a7663
7
8 eshowkw: Stop wrongly classifying *-fbsd as Prefix
9
10 pym/gentoolkit/eshowkw/keywords_header.py | 4 +++-
11 1 file changed, 3 insertions(+), 1 deletion(-)
12
13 diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/keywords_header.py
14 index 9b00d17..86e9bc5 100644
15 --- a/pym/gentoolkit/eshowkw/keywords_header.py
16 +++ b/pym/gentoolkit/eshowkw/keywords_header.py
17 @@ -99,7 +99,9 @@ class keywords_header:
18
19 @staticmethod
20 def __isPrefix(k):
21 - return len(k.split('-')) != 1
22 + spl = k.split('-')
23 + # *-fbsd are not prefix
24 + return len(spl) > 1 and spl[1] != 'fbsd'
25
26 def __sortKeywords(self, keywords, prefix = False, required_keywords = []):
27 """Sort keywords: order by status (IMP, then DEV, then EXP, then