fix [ 1302878 ] testEnvironment.pl does not check versions

This commit is contained in:
Wouter van Oijen 2005-09-24 07:46:48 +00:00
parent 63a3a50b2f
commit d23e580115
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,6 @@
6.7.6
- fix [ 1302878 ] testEnvironment.pl does not check versions (Wouter van Oijen / ProcoliX)
6.7.5
- Fixed a syntax error in Syndicated Content.
- Fixed an infinite loop problem in Syndicated Content when no URLs were

View file

@ -153,7 +153,8 @@ sub checkModule {
my $statement = "require ".$module.";";
if (eval($statement)) {
$statement = '$'.$module."::VERSION";
if (my $currentVersion = eval($statement)) {
my $currentVersion = eval($statement);
if ($currentVersion >= $version) {
printResult("OK");
} else {
printResult("Outdated - Current: ".$currentVersion." / Required: ".$version);