On Wed, 20 Jul 2005, Ville [ISO-8859-1] Skytt� wrote:
> On Wed, 2005-07-20 at 14:20 -0400, Joe Schaefer wrote:
> > The indexer completely ignored META.yml again.
> > It looks like it can't parse the file; does
> > anyone see what's wrong with it?
>
> Dunno about "wrong", I'm not that familiar with YAML, but the stuff
> after "#YAML:1.0" trips ysh from YAML-0.39:
>
> $ ysh < META.yml
> --- !perl/YAML::Error
> code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
> [...]
>
> The attached patch should generate a META.yml that appeases ysh, and
> maybe the CPAN indexer.
I'm not completely sure either, but another change that
seems to work (if one wanted to keep the comment in) is
to use the following:
===================================================================
Index: build/version_check.pl
===================================================================
--- build/version_check.pl (revision 219681)
+++ build/version_check.pl (working copy)
@@ -149,7 +149,7 @@
if ($opts{version}) { # generate META.yml file content
print <<EOT;
---- #YAML:1.0 (see http://module-build.sourceforge.net/META-spec.html)
+#YAML:1.0 (see http://module-build.sourceforge.net/META-spec.html)
name: libapreq2
version: $opts{version}
license: open_source
===================================================================
(ie, have a comment line begin with #).
--
best regards,
randy