On Thu, 31 Mar 2005 14:10:48 -0800, Michael G Schwern <[EMAIL PROTECTED]> said:
> So I'd say PAUSE should only apply version information from META.yml > which is explicitly for a specific .pm file.
I agree on all points. After all, that was what the META.yml files were developed for.
I will investigate how well the existing META.yml files are suited for this job and then tweak the indexer a bit. Stay tuned...
The only problem I have with Michael's limitation is that it would potentially require META.yml lines for all modules in a distribution, even though they individually have perfectly good $VERSION assignments when outside of the CPAN indexer's restrictive environment.
Could the algorithm be:
If a module contains a line that matches the $VERSION regex, yet evaluates to undef inside the indexer, then use the package $VERSION (as defined by the META.yml or Makefile.PL/Build.PL stanza). Only report 'undef' for modules which have no $VERSION stanza at all.
It just seems very wasteful to add 70 lines to the SVK META.yml, just so the indexer doesn't report undef for any of the submodules (which are indeed tightly coupled to the core distro files and could not be released independently). Sure, it can be automated by the build tool, but it defeats the purpose of the META.yml file to be human readable if the actual content is swamped by mostly duplicated information.
John
-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747
