httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r504716 - /httpd/apreq/trunk/build/version_check.pl
Date Wed, 07 Feb 2007 22:11:45 GMT
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;



Mime
View raw message