Skip Menu |

This queue is for tickets about the Parse-CPAN-Packages-Fast CPAN distribution.

Report information
The Basics
Id: 70577
Status: resolved
Priority: 0/
Queue: Parse-CPAN-Packages-Fast

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.06



Subject: dies if non-numeric version
some dist names on cpan have non-numeric data in their version. i know this sucks, but that's life, and we have to deal with it... and parse::cpan::packages::fast doesn't deal this issue correctly: $ perl -MParse::CPAN::Packages::Fast -E 'Parse::CPAN::Packages::Fast->new("/home/cpan/modules/02packages.details.txt.gz")->latest_distribution("Text-CSV_XS")->version' Invalid version format (non-numeric data) at /usr/lib/perl5/vendor_perl/5.12.3/Parse/CPAN/Packages/Fast.pm line 123. other dists with broken version: Spreadsheet-Read, Dist-Zilla-Plugin-PerlTidy, ...
On 2011-08-29 06:58:57, JQUELIN wrote: Show quoted text
> some dist names on cpan have non-numeric data in their version. i know > this sucks, but that's life, and we have to deal with it... and > parse::cpan::packages::fast doesn't deal this issue correctly: > > $ perl -MParse::CPAN::Packages::Fast -E > 'Parse::CPAN::Packages::Fast-
> >new("/home/cpan/modules/02packages.details.txt.gz")- > >latest_distribution("Text-CSV_XS")->version'
> Invalid version format (non-numeric data) at > /usr/lib/perl5/vendor_perl/5.12.3/Parse/CPAN/Packages/Fast.pm line > 123. > > other dists with broken version: Spreadsheet-Read, > Dist-Zilla-Plugin-PerlTidy, ...
The module now uses CPAN::Version instead of version.pm, because the former is more forgiving. The change is in the 0.05_50 release. Regards, Slaven