diff options
author | Chris Williams <chris@bingosnet.co.uk> | 2010-01-25 10:51:13 +0000 |
---|---|---|
committer | Chris Williams <chris@bingosnet.co.uk> | 2010-01-25 10:51:13 +0000 |
commit | c1197786c976cdde68b8ee05dc5b15677b02e7f4 (patch) | |
tree | 1bc54b9fbeb10e71bc147ac36d494ef12d6f29b0 /cpan/CPANPLUS-Dist-Build | |
parent | bdbb64c22f35e0b11cf29ddb2597039baf475c01 (diff) | |
download | perl-c1197786c976cdde68b8ee05dc5b15677b02e7f4.tar.gz |
Update CPANPLUS::Dist::Build to cpan version 0.46
Extract from Changes file
=========================
0.46 Sat Jan 23 07:52:19 GMT 2010
- actually make the prereq resolving fallback to _build/ querying
if the 'prereq_data' action fails. *facepalm*
Resolves an issue in prereq resolution where the failure of using
'Build prereq_data' would not fallback to querying _build/ data.
Highlighted by EekBoek distribution which bundled an older version of
Module::Build.
Diffstat (limited to 'cpan/CPANPLUS-Dist-Build')
-rw-r--r-- | cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build.pm | 22 | ||||
-rw-r--r-- | cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build/Constants.pm | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build.pm b/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build.pm index 2bb5070815..0f27639cda 100644 --- a/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build.pm +++ b/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build.pm @@ -30,7 +30,7 @@ use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext'; local $Params::Check::VERBOSE = 1; -$VERSION = '0.44'; +$VERSION = '0.46'; =pod @@ -403,19 +403,19 @@ sub _find_prereqs { } } - else { - my $file = File::Spec->catfile( $dir, '_build', 'prereqs' ); - return unless -f $file; - my $fh = FileHandle->new(); + my $file = File::Spec->catfile( $dir, '_build', 'prereqs' ); + return unless -f $file; - unless( $fh->open( $file ) ) { - error( loc( "Cannot open '%1': %2", $file, $! ) ); - return; - } - - $content = do { local $/; <$fh> }; + my $fh = FileHandle->new(); + + unless( $fh->open( $file ) ) { + error( loc( "Cannot open '%1': %2", $file, $! ) ); + return; } + + $content = do { local $/; <$fh> }; + } return unless $content; diff --git a/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build/Constants.pm b/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build/Constants.pm index 6fc6a18300..1ac02108e4 100644 --- a/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build/Constants.pm +++ b/cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build/Constants.pm @@ -9,7 +9,7 @@ BEGIN { require Exporter; use vars qw[$VERSION @ISA @EXPORT]; - $VERSION = '0.44'; + $VERSION = '0.46'; @ISA = qw[Exporter]; @EXPORT = qw[ BUILD_DIR BUILD ]; } |