[exim-cvs] Modified other version comparison to be string ba…

Pàgina inicial
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
A: exim-cvs
Assumpte: [exim-cvs] Modified other version comparison to be string based too
Gitweb: http://git.exim.org/exim-website.git/commitdiff/d54be666e66c1211c652e7c7997a9729a5bf2a1f
Commit:     d54be666e66c1211c652e7c7997a9729a5bf2a1f
Parent:     f80fa21b6c37666a119726a2971d794518ab6b8e
Author:     Nigel Metheringham <nigel@???>
AuthorDate: Fri Oct 26 21:30:23 2012 +0100
Committer:  Nigel Metheringham <nigel@???>
CommitDate: Fri Oct 26 21:30:23 2012 +0100


    Modified other version comparison to be string based too
---
 script/gen.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/script/gen.pl b/script/gen.pl
index 61b7cea..298fb14 100755
--- a/script/gen.pl
+++ b/script/gen.pl
@@ -411,7 +411,7 @@ sub old_docs_versions {
     if ( !exists $cache{old_docs_versions} ) {
         my @versions;
         foreach ( glob("$opt{docroot}/exim-html-*") ) {
-            push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_;
+            push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 lt $opt{latest} && -d $_;
         }
         $cache{old_docs_versions} = [ reverse sort { $a cmp $b } @versions ];
     }