Revision ef540e3b
Von Sven Schöling vor fast 13 Jahren hinzugefügt
scripts/installation_check.pl | ||
---|---|---|
62 | 62 |
|
63 | 63 |
sub check_latex { |
64 | 64 |
my ($res) = check_kpsewhich(); |
65 |
print_result("Looking for LaTeX kpsewhich", $res ? ('ok', 'green') : ('NOT ok', 'red'));
|
|
65 |
print_result("Looking for LaTeX kpsewhich", $res); |
|
66 | 66 |
if ($res) { |
67 | 67 |
check_template_dir($_) for SL::InstallationCheck::template_dirs($master_templates); |
68 | 68 |
} |
... | ... | |
126 | 126 |
my $line = "Looking for $module->{fullname}"; |
127 | 127 |
my ($res, $ver) = SL::InstallationCheck::module_available($module->{"name"}, $module->{version}); |
128 | 128 |
if ($res) { |
129 |
print_line($line, $ver || 'no version', 'green'); |
|
129 |
my $ver_string = ref $ver && $ver->can('numify') ? $ver->numify : $ver ? $ver : 'no version'; |
|
130 |
print_line($line, $ver_string, 'green'); |
|
130 | 131 |
} else { |
131 | 132 |
print_result($line, $res); |
132 | 133 |
} |
Auch abrufbar als: Unified diff
installcheck: DBI gibt bei ->VERSION ein version Objekt zurück.