Explain user that he doesn't need to worry if a failed module was optional. One more fix for Windows, also
This commit is contained in:
parent
e3b42cd21e
commit
ed0344e861
12
Build.PL
12
Build.PL
@ -98,7 +98,13 @@ EOF
|
|||||||
foreach my $module (sort keys %modules) {
|
foreach my $module (sort keys %modules) {
|
||||||
my $version = $modules{$module};
|
my $version = $modules{$module};
|
||||||
my $res = system $cpanm, "$module~$version";
|
my $res = system $cpanm, "$module~$version";
|
||||||
$missing_prereqs = 1 if $res != 0 && exists $prereqs{$module};
|
if ($res != 0) {
|
||||||
|
if (exists $prereqs{$module}) {
|
||||||
|
$missing_prereqs = 1;
|
||||||
|
} else {
|
||||||
|
printf "Don't worry, this module is optional.\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# temporarily require this dev version until this upstream bug
|
# temporarily require this dev version until this upstream bug
|
||||||
@ -109,9 +115,9 @@ EOF
|
|||||||
# with current perl binary
|
# with current perl binary
|
||||||
if (-e './xs/Build') {
|
if (-e './xs/Build') {
|
||||||
if ($^O eq 'MSWin32') {
|
if ($^O eq 'MSWin32') {
|
||||||
system 'pushd', 'xs';
|
system 'cd', 'xs';
|
||||||
system 'Build', 'distclean';
|
system 'Build', 'distclean';
|
||||||
system 'popd';
|
system 'cd', '..';
|
||||||
} else {
|
} else {
|
||||||
system './xs/Build', 'distclean';
|
system './xs/Build', 'distclean';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user