Gentoo Archives: gentoo-pms

From: David Leverton <levertond@××××××××××.com>
To: gentoo-pms@l.g.o
Cc: David Leverton <levertond@××××××××××.com>
Subject: [gentoo-pms] [PATCH 2/2] Fix 1a versus 1-scm comparison
Date: Sat, 17 Oct 2009 23:22:04
Message-Id: 1255821697-17128-2-git-send-email-levertond@googlemail.com
In Reply to: [gentoo-pms] [PATCH 1/2] Rewrite version comparison rules in pseudocode by David Leverton
1 ---
2 names.tex | 4 ++--
3 1 files changed, 2 insertions(+), 2 deletions(-)
4
5 Sending this separately because it's a change in logic from the old wording.
6
7 diff --git a/names.tex b/names.tex
8 index c75c2c1..5738a50 100644
9 --- a/names.tex
10 +++ b/names.tex
11 @@ -191,8 +191,8 @@ from which it was invoked.
12 \begin{algorithm}
13 \caption{Version comparison logic for letter components} \label{alg:version-comparison-letter}
14 \begin{algorithmic}[1]
15 - \STATE let $Al$ be the letter component of $A$ if any, otherwise the empty string
16 - \STATE let $Bl$ be the letter component of $B$ if any, otherwise the empty string
17 + \STATE let $Al$ be the letter component of $A$ if any, \IFKDEBUILDELSE{otherwise \t{zz} if $A$ has any suffixes and its first suffix is \t{-scm}, }{}otherwise the empty string
18 + \STATE let $Bl$ be the letter component of $B$ if any, \IFKDEBUILDELSE{otherwise \t{zz} if $B$ has any suffixes and its first suffix is \t{-scm}, }{}otherwise the empty string
19 \IF{$Al>Bl$ using ASCII stringwise comparison}
20 \RETURN $A>B$
21 \ELSIF{$Al<Bl$ using ASCII stringwise comparison}
22 --
23 1.6.4.4