Skip to content

Commit

Permalink
narrow the scope of EUMM requirement softening only when Module::Inst…
Browse files Browse the repository at this point in the history
…all exists
  • Loading branch information
miyagawa committed Jun 28, 2015
1 parent 6353a21 commit f9623f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/App/cpanminus/script.pm
Expand Up @@ -2704,7 +2704,9 @@ sub extract_prereqs {
sub soften_makemaker_prereqs {
my($self, $prereqs) = @_;

for my $phase (qw( build test )) {
return $prereqs unless -e "inc/Module/Install.pm";

for my $phase (qw( build test runtime )) {
my $reqs = $prereqs->requirements_for($phase, 'requires');
if ($reqs->requirements_for_module('ExtUtils::MakeMaker')) {
$reqs->clear_requirement('ExtUtils::MakeMaker');
Expand Down

0 comments on commit f9623f6

Please sign in to comment.