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: Tue, 03 Nov 2009 18:12:06
Message-Id: 1257271908-9355-2-git-send-email-levertond@googlemail.com
In Reply to: [gentoo-pms] [PATCH 1/2] Rewrite version comparison rules in pseudocode by David Leverton
---
 names.tex |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/names.tex b/names.tex
index be155ad..f72bc98 100644
--- a/names.tex
+++ b/names.tex
@@ -192,8 +192,8 @@ from which it was invoked.
 \begin{algorithm}
 \caption{Version comparison logic for letter components} \label{alg:version-comparison-letter}
 \begin{algorithmic}[1]
-  \STATE let $Al$ be the letter component of $A$ if any, otherwise the empty string
-  \STATE let $Bl$ be the letter component of $B$ if any, otherwise the empty string
+  \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
+  \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
   \IF{$Al>Bl$ using ASCII stringwise comparison}
     \RETURN $A>B$
   \ELSIF{$Al<Bl$ using ASCII stringwise comparison}
-- 
1.6.4.4

Replies

Subject Author
Re: [gentoo-pms] [PATCH 2/2] Fix 1a versus 1-scm comparison Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>