Author: kwilliams
Date: Thu Jul 20 20:34:11 2006
New Revision: 6688
Modified:
Module-Build/trunk/lib/Module/Build/Base.pm
Log:
YAML::Node->exists() doesn't work right, so stringify directly
Modified: Module-Build/trunk/lib/Module/Build/Base.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Base.pm (original)
+++ Module-Build/trunk/lib/Module/Build/Base.pm Thu Jul 20 20:34:11 2006
@@ -3211,8 +3211,7 @@
die "ERROR: Missing required field '$_' for META.yml\n"
unless defined($node->{$name}) && length($node->{$name});
}
- # Really don't understand why I need the "... if exists" here
- $node->{version} = $node->{version}->stringify if exists $node->{version};
+ $node->{version} = '' . $node->{version}; # Stringify version objects
if (defined( $self->license ) &&
defined( my $url = $self->valid_licenses->{ $self->license } )) {