You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by bo...@apache.org on 2007/02/07 23:11:45 UTC
svn commit: r504716 - /httpd/apreq/trunk/build/version_check.pl
Author: bojan
Date: Wed Feb 7 14:11:44 2007
New Revision: 504716
URL: http://svn.apache.org/viewvc?view=rev&rev=504716
Log:
Make sure both versions are numeric before comparison
Modified:
httpd/apreq/trunk/build/version_check.pl
Modified: httpd/apreq/trunk/build/version_check.pl
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/build/version_check.pl?view=diff&rev=504716&r1=504715&r2=504716
==============================================================================
--- httpd/apreq/trunk/build/version_check.pl (original)
+++ httpd/apreq/trunk/build/version_check.pl Wed Feb 7 14:11:44 2007
@@ -218,7 +218,7 @@
my $saw = $1;
my $fail;
-if ($saw =~ /^(\d+)(\.(\d+))$/) {
+if ($saw =~ /^(\d+)(\.(\d+))$/ and $version =~ /^(\d+)(\.(\d+))$/) {
$fail = $saw < $version;
} else {
my @version = split /\./, $version;