From ef540e3be2813445e92e138f6e9a9b614aff703c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 17 Jan 2012 10:24:23 +0100 Subject: [PATCH] =?utf8?q?installcheck:=20DBI=20gibt=20bei=20->VERSION=20e?= =?utf8?q?in=20version=20Objekt=20zur=C3=BCck.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/installation_check.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.20.1