From 212433f27ac422f79924d03b5d047236f6cdd308 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 24 Oct 2007 00:33:30 +0000 Subject: Bug 262269: A tool to auto-install missing perl packages on non-Windows systems Patch By Max Kanat-Alexander (module owner) --- Bugzilla/Install/Requirements.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Install/Requirements.pm') diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm index 885c407ee..8fd8fe2c6 100644 --- a/Bugzilla/Install/Requirements.pm +++ b/Bugzilla/Install/Requirements.pm @@ -434,6 +434,10 @@ EOT printf "%15s: $command\n", $module->{package}; } } + + if ($output && $check_results->{any_missing}) { + print install_string('install_all', { perl => $^X }); + } } sub check_graphviz { @@ -530,7 +534,7 @@ sub install_command { $package = $module->{package}; } else { - $command = "$^X -MCPAN -e 'install \"\%s\"'"; + $command = "$^X install-module.pl \%s"; # Non-Windows installations need to use module names, because # CPAN doesn't understand package names. $package = $module->{module}; -- cgit v1.2.3-24-g4f1b