Commit 33895dda authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 655912: install-module.pl is unable to install LWP::UserAgent on Perl…

Bug 655912: install-module.pl is unable to install LWP::UserAgent on Perl <5.8.8, because LWP 6.0 now requires 5.8.8 as a minimum r/a=mkanat
parent 9bbfca87
......@@ -187,8 +187,20 @@ sub install_module {
if (!$module) {
die install_string('no_such_module', { module => $name }) . "\n";
}
my $version = $module->cpan_version;
my $module_name = $name;
if ($name eq 'LWP::UserAgent' && $^V lt v5.8.8) {
# LWP 6.x requires Perl 5.8.8 or newer.
# As PAUSE only indexes the very last version of each module,
# we have to specify the path to the tarball ourselves.
$name = 'GAAS/libwww-perl-5.837.tar.gz';
# This tarball contains LWP::UserAgent 5.835.
$version = '5.835';
}
print install_string('install_module',
{ module => $name, version => $module->cpan_version }) . "\n";
{ module => $module_name, version => $version }) . "\n";
if (_always_test($name)) {
CPAN::Shell->install($name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment