diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/CPANPLUS/Dist/Build.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/CPANPLUS/Dist/Build.pm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Master/tlpkg/tlperl/lib/CPANPLUS/Dist/Build.pm b/Master/tlpkg/tlperl/lib/CPANPLUS/Dist/Build.pm index 702d606115b..d938749c825 100644 --- a/Master/tlpkg/tlperl/lib/CPANPLUS/Dist/Build.pm +++ b/Master/tlpkg/tlperl/lib/CPANPLUS/Dist/Build.pm @@ -1,5 +1,7 @@ package CPANPLUS::Dist::Build; +use if $] > 5.017, 'deprecate'; + use strict; use warnings; use vars qw[@ISA $STATUS $VERSION]; @@ -30,7 +32,7 @@ use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext'; local $Params::Check::VERBOSE = 1; -$VERSION = '0.62'; +$VERSION = '0.70'; =pod @@ -327,6 +329,15 @@ sub prepare { $fail++; last RUN; } + unless ( BUILD->( $dir ) ) { + error( loc( "Build.PL failed to generate a Build script: %1", $prep_output ) ); + if ( $conf->get_conf('cpantest') ) { + $status->{stage} = 'prepare'; + $status->{capture} = $prep_output; + } + $fail++; last RUN; + } + msg( $prep_output, 0 ); my $prereqs = $self->status->prereqs; |