X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FInstallationCheck.pm;h=3977bb4697720333502cac47239a29b6fa518bf5;hb=cae6316e718234083b892b042e61714ceb13b0ca;hp=22724c429eee614a058f663e94195f5c33cd75b2;hpb=541272c5cf4f874a13eff89993d5d4a941451f42;p=kivitendo-erp.git diff --git a/SL/InstallationCheck.pm b/SL/InstallationCheck.pm index 22724c429..3977bb469 100644 --- a/SL/InstallationCheck.pm +++ b/SL/InstallationCheck.pm @@ -11,6 +11,10 @@ use vars qw(@required_modules); { "name" => "HTML::Template", "url" => "http://search.cpan.org/~samtregar/" }, { "name" => "Archive::Zip", "url" => "http://search.cpan.org/~adamk/" }, { "name" => "Text::Iconv", "url" => "http://search.cpan.org/~mpiotr/" }, + { "name" => "Time::HiRes", "url" => "http://search.cpan.org/~jhi/" }, + { "name" => "YAML", "url" => "http://search.cpan.org/~ingy/" }, + { "name" => "IO::Wrap", "url" => "http://search.cpan.org/~dskoll/IO-stringy-2.110/" }, + { "name" => "Text::CSV_XS", "url" => "http://search.cpan.org/~hmbrand/Text-CSV_XS-0.29/" }, ); sub module_available { @@ -24,12 +28,7 @@ sub module_available { } sub test_all_modules { - my @missing_modules; - - map({ push(@missing_modules, $_) unless (module_available($_->{"name"})); } - @required_modules); - - return @missing_modules; + return grep { !module_available($_->{name}) } @required_modules; } 1;