From 8adb211a4983c297ce4b9b6e59136ffb141a5421 Mon Sep 17 00:00:00 2001 From: Wulf Date: Thu, 20 Sep 2012 14:59:08 +0200 Subject: [PATCH] Bessere Fehlermeldung fuer nicht-Techniker scipts/installation_check.pl benotigt Config::Std als != core Modul wenn dies Fehlt laesst sich der installationscheck nicht ausfuehren -> Henne/Ei --- SL/InstallationCheck.pm | 2 +- scripts/installation_check.pl | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/SL/InstallationCheck.pm b/SL/InstallationCheck.pm index 397a99f24..d29578b41 100644 --- a/SL/InstallationCheck.pm +++ b/SL/InstallationCheck.pm @@ -15,7 +15,7 @@ BEGIN { { name => "Config::Std", url => "http://search.cpan.org/~dconway/", debian => 'libconfig-std-perl' }, { name => "DateTime", url => "http://search.cpan.org/~drolsky/", debian => 'libdatetime-perl' }, { name => "DBI", version => '1.50', url => "http://search.cpan.org/~timb/", debian => 'libdbi-perl' }, - { name => "DBD::Pg", version => '1.49', url => "http://search.cpan.org/~dbdpg/", debian => 'libdbd-pg' }, + { name => "DBD::Pg", version => '1.49', url => "http://search.cpan.org/~dbdpg/", debian => 'libdbd-pg-perl' }, { name => "Email::Address", url => "http://search.cpan.org/~rjbs/", debian => 'libemail-address-perl' }, { name => "FCGI", version => '0.72', url => "http://search.cpan.org/~mstrout/", debian => 'libfcgi-perl' }, { name => "JSON", url => "http://search.cpan.org/~makamaka", debian => 'libjson-perl' }, diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index a50d184d2..2bec003cd 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -13,9 +13,29 @@ BEGIN { $master_templates = './templates/print/'; } +unless (eval { require Config::Std; 1 }){ + print STDERR <