commit: c49575826b8193e31b7b4b00c9fd703c3f2db10a Author: Brian Harring <ferringb <AT> gmail <DOT> com> AuthorDate: Sat Jan 10 10:03:49 2026 +0000 Commit: Brian Harring <ferringb <AT> gmail <DOT> com> CommitDate: Sat Jan 10 10:03:49 2026 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=c4957582
clarify allowed keyword rules https://projects.gentoo.org/pms/9/pms.html#keyword-names documents what's allowed, but #767 showed we should improve the inline code comments to be clearer. Signed-off-by: Brian Harring <ferringb <AT> gmail.com> src/pkgcheck/addons/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkgcheck/addons/__init__.py b/src/pkgcheck/addons/__init__.py index c621c53b..6cdc0a89 100644 --- a/src/pkgcheck/addons/__init__.py +++ b/src/pkgcheck/addons/__init__.py @@ -88,6 +88,10 @@ class KeywordsAddon(base.Addon): def __init__(self, *args): super().__init__(*args) + # see https://projects.gentoo.org/pms/9/pms.html#keyword-names . + # usage of '-' indicates that the named arch is never to be considered as a target + # for stabilization. `-*` is shorthand to state that any arch not explicitly marked + # as stable or unstable, is not to be considered for stabilization. special = {"-*"} self.arches: frozenset[str] = self.options.target_repo.known_arches unstable = {"~" + x for x in self.arches}
