From 818ce46d9780c7a04ac04a3f116021f1edadd476 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Sat, 26 Oct 2002 08:56:55 +0000 Subject: Bug 147833 - start using CGI.pm r=gerv, justdave --- checksetup.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index 9f22ae1f5..1acec457c 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -179,6 +179,13 @@ sub have_vers { $vnum = ${"${pkg}::VERSION"} || ${"${pkg}::Version"} || 0; $vnum = -1 if $@; + # 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 ($pkg eq 'CGI' && $vnum =~ /(2\.7\d)(\d+)/) { + $vnum = $1 . "." . $2; + } + if ($vnum eq "-1") { # string compare just in case it's non-numeric $vstr = "not found"; } @@ -201,8 +208,8 @@ my $modules = [ version => '1.52' }, { - name => 'CGI::Carp', - version => '0' + name => 'CGI', + version => '2.88' }, { name => 'Data::Dumper', -- cgit v1.2.3-24-g4f1b