commit: cb99e4dcb5837626320b1fba0277d0fa7c1c9829
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 22 18:08:01 2015 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 22 18:08:01 2015 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=cb99e4dc
The =* dependency operator can only match complete version components.
Bug: 560466
dependencies.tex | 9 +++++----
names.tex | 3 ++-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/dependencies.tex b/dependencies.tex
index 58c86f9..fcfce9b 100644
--- a/dependencies.tex
+++ b/dependencies.tex
@@ -232,10 +232,11 @@ The following operators are available:
\begin{description}
\item[\t{<}] Strictly less than the specified version.
\item[\t{<=}] Less than or equal to the specified version.
-\item[\t{=}] Exactly equal to the specified version. Special exception: if the
version
- specified has an asterisk immediately following it, a string prefix
comparison is
- used instead. When an asterisk is used, the specification must remain
valid if the
- asterisk were removed. (An asterisk used with any other operator is
illegal.)
+\item[\t{=}] Exactly equal to the specified version. Special exception: if the
version specified
+ has an asterisk immediately following it, then only the given number of
version components
+ is used for comparison, i.\,e.\ the asterisk acts as a wildcard for any
further components.
+ When an asterisk is used, the specification must remain valid if the
asterisk were removed.
+ (An asterisk used with any other operator is illegal.)
\item[\t{\textasciitilde}] Equal to the specified version when revision parts
are ignored.
\item[\t{>=}] Greater than or equal to the specified version.
\item[\t{>}] Strictly greater than the specified version.
diff --git a/names.tex b/names.tex
index d79499d..2fc59b6 100644
--- a/names.tex
+++ b/names.tex
@@ -59,7 +59,8 @@ integer, followed by zero or more dot-prefixed positive
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 suffixed by an optional integer.
+\t{\_rc} or \t{\_p}, which themselves may be followed by an optional 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}.