[Module::Build] [PATCH] Missing META.yml fields
Status: Beta
Brought to you by:
kwilliams
|
From: Chris D. <ch...@cl...> - 2006-03-05 20:48:11
|
If you use the "dist_name" style of Build.PL instead of
"module_name", then you need to include the "dist_abstract" field
too, or you will see the following error when running "Build distmeta":
ERROR: Missing required field 'abstract' for META.yml
This is very misleading because it's the "dist_abstract" field that's
missing, not "abstract". The following simple patch changes the
error message. I've confirmed that with the patch it now says:
ERROR: Missing required field 'dist_abstract' for META.yml
but I haven't tested any fields other than "abstract".
Chris
diff -u -r1.552 Base.pm
--- lib/Module/Build/Base.pm 4 Mar 2006 03:59:28 -0000 1.552
+++ lib/Module/Build/Base.pm 5 Mar 2006 20:45:41 -0000
@@ -3077,7 +3077,7 @@
foreach (qw(dist_name dist_version dist_author dist_abstract
license)) {
(my $name = $_) =~ s/^dist_//;
$node->{$name} = $self->$_();
- die "ERROR: Missing required field '$name' for META.yml\n"
+ die "ERROR: Missing required field '$_' for META.yml\n"
unless defined($node->{$name}) && length($node->{$name});
}
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Clotho Advanced Media, Inc. - Creators of MediaLandscape Software
(http://www.media-landscape.com/) and partners in the revolutionary
Croquet project (http://www.opencroquet.org/)
|