X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FInstallationCheck.pm;h=dc2a124f072a21dbe53f0ffa8046c48cc48f9fb8;hb=4e3d7a2e64528970fb1927526a289f9b0c76f409;hp=84ee43d677b8c25d5f9ecfc2912f4993fa03212c;hpb=7b46961a8eaa5ae92dfd003de717c49f9203e5ec;p=kivitendo-erp.git diff --git a/SL/InstallationCheck.pm b/SL/InstallationCheck.pm index 84ee43d67..dc2a124f0 100644 --- a/SL/InstallationCheck.pm +++ b/SL/InstallationCheck.pm @@ -12,6 +12,10 @@ use vars qw(@required_modules); { "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/" }, + { "name" => "Text::CSV_XS", "url" => "http://search.cpan.org/~hmbrand/" }, + { "name" => "List::Util", "url" => "http://search.cpan.org/~gbarr/" }, ); sub module_available { @@ -25,12 +29,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;