summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-10-29 12:22:14 +0100
committerUlrich Müller <ulm@gentoo.org>2017-10-29 12:22:14 +0100
commit0a2577bd7ac038a2b6849a40bc0a05fe3d535bd5 (patch)
tree54f8b5e881a1c2e4c0167b2443837832b335d228
parentpms.cls: Allow line breaks after hyphens in URLs. (diff)
downloadpms-0a2577bd7ac038a2b6849a40bc0a05fe3d535bd5.tar.gz
pms-0a2577bd7ac038a2b6849a40bc0a05fe3d535bd5.tar.bz2
pms-0a2577bd7ac038a2b6849a40bc0a05fe3d535bd5.zip
Straighten out specification of integer version components.
Reported-by: John R. Graham <john_r_graham@gentoo.org> Closes: https://bugs.gentoo.org/635340
-rw-r--r--names.tex10
1 files 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}