From 0a2577bd7ac038a2b6849a40bc0a05fe3d535bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Sun, 29 Oct 2017 12:22:14 +0100 Subject: [PATCH] Straighten out specification of integer version components. Reported-by: John R. Graham 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} -- 2.14.3