From: Sven Schöling Date: Tue, 17 Jan 2012 09:24:23 +0000 (+0100) Subject: installcheck: DBI gibt bei ->VERSION ein version Objekt zurück. X-Git-Tag: release-2.7.0beta1~48 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ef540e3be2813445e92e138f6e9a9b614aff703c;p=kivitendo-erp.git installcheck: DBI gibt bei ->VERSION ein version Objekt zurück. --- diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index 1cebcb28e..c132310ec 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -62,7 +62,7 @@ if ($check{l}) { sub check_latex { my ($res) = check_kpsewhich(); - print_result("Looking for LaTeX kpsewhich", $res ? ('ok', 'green') : ('NOT ok', 'red')); + print_result("Looking for LaTeX kpsewhich", $res); if ($res) { check_template_dir($_) for SL::InstallationCheck::template_dirs($master_templates); } @@ -126,7 +126,8 @@ sub check_module { my $line = "Looking for $module->{fullname}"; my ($res, $ver) = SL::InstallationCheck::module_available($module->{"name"}, $module->{version}); if ($res) { - print_line($line, $ver || 'no version', 'green'); + my $ver_string = ref $ver && $ver->can('numify') ? $ver->numify : $ver ? $ver : 'no version'; + print_line($line, $ver_string, 'green'); } else { print_result($line, $res); }