From d54be666e66c1211c652e7c7997a9729a5bf2a1f Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 26 Oct 2012 21:30:23 +0100 Subject: [PATCH] Modified other version comparison to be string based too --- script/gen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; } -- 2.30.2