commit: 0a2577bd7ac038a2b6849a40bc0a05fe3d535bd5 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sun Oct 29 11:22:14 2017 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun Oct 29 11:22:14 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=0a2577bd
Straighten out specification of integer version components. Reported-by: John R. Graham <john_r_graham <AT> gentoo.org> Closes: https://bugs.gentoo.org/635340 names.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/names.tex b/names.tex index d00088e..7bf9475 100644 --- a/names.tex +++ b/names.tex @@ -61,16 +61,16 @@ upon the length of any component. Package managers should indicate or reject any invalid according to the rules below. A version starts with the number part, which is in the form \t{[0-9]+(\textbackslash.[0-9]+)*} -(a positive integer, followed by zero or more dot-prefixed positive integers). +(an unsigned integer, followed by zero or more dot-prefixed unsigned integers). This may optionally be followed by one of \t{[a-z]} (a lowercase letter). -This may be followed by zero or more of the suffixes \t{_alpha}, \t{_beta}, \t{_pre}, -\t{_rc} or \t{_p}, which themselves may be followed by an optional integer. Suffix and integer +This may be followed by zero or more of the suffixes \t{_alpha}, \t{_beta}, \t{_pre}, \t{_rc} +or \t{_p}, each of which may optionally be followed by an unsigned integer. Suffix and integer count as separate version components. -This may optionally be followed by the suffix \t{-r} followed immediately by an integer (the -``revision number''). If this suffix is not present, it is assumed to be \t{-r0}. +This may optionally be followed by the suffix \t{-r} followed immediately by an unsigned integer +(the ``revision number''). If this suffix is not present, it is assumed to be \t{-r0}. \section{Version Comparison}
