summaryrefslogtreecommitdiff
path: root/cpan/Module-Build/lib/Module/Build/Base.pm
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2011-03-07 21:24:15 -0500
committerDavid Golden <dagolden@cpan.org>2011-03-07 21:24:15 -0500
commit0bb357657ea8e4ba328a0dc4e4546a86b8bc1038 (patch)
treeaa2e0bf142b9673ba7829113b0a575a6f4f29580 /cpan/Module-Build/lib/Module/Build/Base.pm
parent490f3b05882c31e62e49c88a22cec5beb9960920 (diff)
downloadperl-0bb357657ea8e4ba328a0dc4e4546a86b8bc1038.tar.gz
Update Module::Build to CPAN version 0.3800
[DELTA] 0.3800 - Sat Mar 5 15:11:41 EST 2011 Summary of major changes since 0.3624: [ENHANCEMENTS] - Generates META.json and MYMETA.json consistent with version 2 of the CPAN Meta Spec. [David Golden] Also in this release: [BUG FIXES] - Autogenerated documentation no longer includes private actions from Module::Build's own release subclass. [Report by Timothy Appnel, fix by David Golden] 0.37_06 - Mon Feb 28 21:43:31 EST 2011 [BUG FIXES] - prerequisites with the empty string instead of a version are normalized to "0". (RT#65909) [OTHER] - More Pod typo/link fixes [Hongwen Qiu]
Diffstat (limited to 'cpan/Module-Build/lib/Module/Build/Base.pm')
-rw-r--r--cpan/Module-Build/lib/Module/Build/Base.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpan/Module-Build/lib/Module/Build/Base.pm b/cpan/Module-Build/lib/Module/Build/Base.pm
index ef93b88fed..fba916ad26 100644
--- a/cpan/Module-Build/lib/Module/Build/Base.pm
+++ b/cpan/Module-Build/lib/Module/Build/Base.pm
@@ -4,7 +4,7 @@ package Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
BEGIN { require 5.00503 }
@@ -1931,7 +1931,7 @@ sub create_mymeta {
}
$mymeta->{dynamic_config} = 0;
$mymeta->{generated_by} = "Module::Build version $Module::Build::VERSION";
- $meta_obj = CPAN::Meta->new( $mymeta );
+ eval { $meta_obj = CPAN::Meta->new( $mymeta, { lazy_validation => 1 } ) }
}
# or generate from scratch, ignoring errors if META doesn't exist
else {
@@ -4593,7 +4593,7 @@ sub write_metafile {
sub normalize_version {
my ($self, $version) = @_;
- $version = 0 unless defined $version;
+ $version = 0 unless defined $version and length $version;
if ( $version =~ /[=<>!,]/ ) { # logic, not just version
# take as is without modification