Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a t/metadata.t failure

git-svn-id: http://svn.perl.org/modules/Module-Build/trunk@6656 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information...
commit 21fcf92e1550b836c88f500b8aecc44ff7e7ea95 1 parent 87b294e
@kenahoo kenahoo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Module/Build/Base.pm
View
3  lib/Module/Build/Base.pm
@@ -3211,7 +3211,8 @@ sub prepare_metadata {
die "ERROR: Missing required field '$_' for META.yml\n"
unless defined($node->{$name}) && length($node->{$name});
}
- $node->{version} = $node->{version}->stringify;
+ # Really don't understand why I need the "... if exists" here
+ $node->{version} = $node->{version}->stringify if exists $node->{version};
if (defined( $self->license ) &&
defined( my $url = $self->valid_licenses->{ $self->license } )) {
Please sign in to comment.
Something went wrong with that request. Please try again.