File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -455,17 +455,7 @@ sub new {
455
455
456
456
$self -> extract_ARGV(\@ARGV );
457
457
458
- # RT#91540 PREREQ_FATAL not recognized on command line
459
- if (%$unsatisfied_prereqs && $self -> {PREREQ_FATAL }){
460
- my $failedprereqs = join " \n " , map {" $_ $unsatisfied_prereqs ->{$_ }" }
461
- sort { $a cmp $b } keys %$unsatisfied_prereqs ;
462
- die <<"END" ;
463
- MakeMaker FATAL: prerequisites not found.
464
- $failedprereqs
465
-
466
- Please install these modules first and rerun 'perl Makefile.PL'.
467
- END
468
- }
458
+ $self -> check_PREREQ_FATAL($unsatisfied_prereqs ); # after ARGV processed
469
459
470
460
$self -> {NAME } ||= $self -> guess_name;
471
461
warn " Warning: NAME must be a package name\n "
485
475
$self ;
486
476
}
487
477
478
+ sub check_PREREQ_FATAL {
479
+ my ($self , $unsatisfied_prereqs ) = @_ ;
480
+ # RT#91540 PREREQ_FATAL not recognized on command line
481
+ if (%$unsatisfied_prereqs && $self -> {PREREQ_FATAL }){
482
+ my $failedprereqs = join " \n " , map {" $_ $unsatisfied_prereqs ->{$_ }" }
483
+ sort { $a cmp $b } keys %$unsatisfied_prereqs ;
484
+ die <<"END" ;
485
+ MakeMaker FATAL: prerequisites not found.
486
+ $failedprereqs
487
+
488
+ Please install these modules first and rerun 'perl Makefile.PL'.
489
+ END
490
+ }
491
+ }
492
+
488
493
sub extract_CONFIGURE {
489
494
my ($self ) = @_ ;
490
495
my %initial_att = %$self ; # record initial attributes
You can’t perform that action at this time.
0 commit comments