[exim-cvs] Changed version comparison to be string based

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Changed version comparison to be string based
Gitweb: http://git.exim.org/exim-website.git/commitdiff/f80fa21b6c37666a119726a2971d794518ab6b8e
Commit:     f80fa21b6c37666a119726a2971d794518ab6b8e
Parent:     c752504c6f3513e5c6afb41869e4c1183658b342
Author:     Nigel Metheringham <nigel@???>
AuthorDate: Fri Oct 26 21:28:07 2012 +0100
Committer:  Nigel Metheringham <nigel@???>
CommitDate: Fri Oct 26 21:28:07 2012 +0100


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


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