From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4FBC41382C5 for ; Fri, 26 Jan 2018 23:25:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC1DEE092B; Fri, 26 Jan 2018 23:25:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C9E0E092B for ; Fri, 26 Jan 2018 23:25:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9878B335C38 for ; Fri, 26 Jan 2018 23:25:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28B3F1CF for ; Fri, 26 Jan 2018 23:25:41 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1516978250.ed4a76633d69d6312b8572bc16cc758cbc36b94e.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eshowkw/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/eshowkw/keywords_header.py X-VCS-Directories: pym/gentoolkit/eshowkw/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ed4a76633d69d6312b8572bc16cc758cbc36b94e X-VCS-Branch: master Date: Fri, 26 Jan 2018 23:25:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ff8c3ef1-0a85-4da5-80fb-2067430e4253 X-Archives-Hash: 8b9b2c59eb2000c74ca3c2db99b2fe42 commit: ed4a76633d69d6312b8572bc16cc758cbc36b94e Author: Michał Górny gentoo org> AuthorDate: Tue Jan 23 12:12:59 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jan 26 14:50:50 2018 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=ed4a7663 eshowkw: Stop wrongly classifying *-fbsd as Prefix pym/gentoolkit/eshowkw/keywords_header.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/keywords_header.py index 9b00d17..86e9bc5 100644 --- a/pym/gentoolkit/eshowkw/keywords_header.py +++ b/pym/gentoolkit/eshowkw/keywords_header.py @@ -99,7 +99,9 @@ class keywords_header: @staticmethod def __isPrefix(k): - return len(k.split('-')) != 1 + spl = k.split('-') + # *-fbsd are not prefix + return len(spl) > 1 and spl[1] != 'fbsd' def __sortKeywords(self, keywords, prefix = False, required_keywords = []): """Sort keywords: order by status (IMP, then DEV, then EXP, then