When running repoman 2.3.10 the following examples of "KEYWORDS" lines are flagged as unsorted KEYWORDS="~amd64 ~amd64-linux ~ppc-macos ~x64-macos ~x86-linux ~x86-macos" KEYWORDS="~alpha ~amd64 ~amd64-fbsd ~amd64-linux ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x64-macos ~x64-solaris ~x86 ~x86-fbsd ~x86-linux ~x86-macos" I cannot work out why I get this report in those instances. repoman is set to use python 2.7.
Those examples really have unsorted keywords. 1-element keywords (without hyphen) should be before 2-elements keywords (with hyphen). 2-elements keywords should be firstly sorted by second element. E.g. *-linux keywords before *-macos keywords. You can use 'ekeyword' tool (from app-portage/gentoolkit) for handling of keywords with proper sorting.
Thanks. It is totally unclear from the message that 2 elements keywords are to be after all the one with a single elements. If there is a page for sorting rules, could it be added to the message or something? Point 2 is especially backwards when all you expect is lexical ordering.