]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 886034: Remove deprecated code about CGI 2.75
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 25 Jun 2013 22:03:14 +0000 (00:03 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 25 Jun 2013 22:03:14 +0000 (00:03 +0200)
r=dkl a=LpSolit

Bugzilla/Install/Requirements.pm

index 66622a7a578baf32b3bf518c8f4c88adab739c20..f4c24f038e0dd9f29d22881b504bcd26de167e02 100644 (file)
@@ -677,13 +677,7 @@ sub have_vers {
     # the module isn't loaded.
     my $vnum = $module->VERSION || -1;
 
-    # CGI's versioning scheme went 2.75, 2.751, 2.752, 2.753, 2.76
-    # That breaks the standard version tests, so we need to manually correct
-    # the version
-    if ($module eq 'CGI' && $vnum =~ /(2\.7\d)(\d+)/) {
-        $vnum = $1 . "." . $2;
-    }
-    # CPAN did a similar thing, where it has versions like 1.9304.
+    # Fix CPAN versions like 1.9304.
     if ($module eq 'CPAN' and $vnum =~ /^(\d\.\d{2})\d{2}$/) {
         $vnum = $1;
     }