Skip to content

Commit c495758

Browse files
committed
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@gmail.com>
1 parent 7b6e43d commit c495758

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pkgcheck/addons/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ class KeywordsAddon(base.Addon):
8888

8989
def __init__(self, *args):
9090
super().__init__(*args)
91+
# see https://projects.gentoo.org/pms/9/pms.html#keyword-names .
92+
# usage of '-' indicates that the named arch is never to be considered as a target
93+
# for stabilization. `-*` is shorthand to state that any arch not explicitly marked
94+
# as stable or unstable, is not to be considered for stabilization.
9195
special = {"-*"}
9296
self.arches: frozenset[str] = self.options.target_repo.known_arches
9397
unstable = {"~" + x for x in self.arches}

0 commit comments

Comments
 (0)