David Golden <[email protected]> writes:
> On Sun, Apr 5, 2009 at 5:05 AM, Andreas J. Koenig
>> Ricardo asked me during a breakfast for a new index for URI::cpan: 4
>> columns (author,distbase,version,path) and it became a Todo item for
>> me. But I haven't yet done anything about it:-(
>
> What's interesting is that META.yml doesn't actually have that
> information, either. Not that it necessarily should know the filename
> of the tarball that it resides in, but while there is clearly
> distribution name and version, "author" is just a list of strings.
>
> It sort of makes me wonder whether we should back away from trying to
> make CPAN Testers 2.0 target "distfile" as the resource and just focus
> on "distribution" instead.
>
> For those not following that distinction, here's a quick and dirty
> description of the data model for things on CPAN.
>
> * a "distfile" is the unique identity (file path) of an archive on
> CPAN: AUTHOR/Distname-Version.Suffix
> * a "distfile" has an "author" and a "distribution"
> * a "distribution" has a "name" and a "version"
> * a "distribution" may contain "modules" (which may contain
> "packages") or "scripts" (but ignore the latter for now)
To be more specific, there's also a possible subdirectory in the
distfile. So it could be
AUTHOR/subdir/.../Distname-Version.Suffix
I just stumbled over a bug in Git::CPAN::Patch. This module needs to
match a distribution object constructed from CPANPLUS::Backend and
Parse::BACKPAN::Packages and fails in the presence of additional
subdirectories.
Regards,
Slaven
--
Slaven Rezic - slaven <at> rezic <dot> de
tksm - Perl/Tk program for searching and replacing in multiple files
http://ptktools.sourceforge.net/#tksm