Skip Menu |

This queue is for tickets about the CPAN-DistnameInfo CPAN distribution.

Report information
The Basics
Id: 18756
Status: resolved
Priority: 0/
Queue: CPAN-DistnameInfo

People
Owner: Nobody in particular
Requestors: jpo [...] di.uminho.pt
Cc:
AdminCc:

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



Subject: Problems extracting information from at least one entry of 02packages.details.txt.gz
Graham, The CPAN::DistnameInfo fails to extract information at least for one entry in the CPAN file 02packages.details.txt.gz. Entries: Spreadsheet::WriteExcel 2.16 J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.16.tar.gz Spreadsheet::WriteExcel::WebPivot 0.01 N/NA/NATHANL/Spreadsheet-WriteExcel-WebPivot2.tar.gz Example script ----------#!/usr/bin/perl -w use strict; use CPAN::DistnameInfo; my $d; $d = CPAN::DistnameInfo->new('J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.16.tar.gz'); print $d->filename, "\n"; print "\tD: ", $d->dist, "\n"; print "\tV: ", $d->version, "\n"; $d = CPAN::DistnameInfo->new('N/NA/NATHANL/Spreadsheet-WriteExcel-WebPivot2.tar.gz'); print $d->filename, "\n"; print "\tD: ", $d->dist, "\n"; print "\tV: ", $d->version, "\n"; ---------- Output produced ---------- Spreadsheet-WriteExcel-2.16.tar.gz D: Spreadsheet-WriteExcel V: 2.16 Spreadsheet-WriteExcel-WebPivot2.tar.gz D: Spreadsheet-WriteExcel V: WebPivot2 ---------- CPAN::DistnameInfo correctly extracts the version info from "Spreadsheet-WriteExcel-2.16.tar.gz" but fails for the second entry "Spreadsheet-WriteExcel-WebPivot2.tar.gz". Regards, /jpo
Subject: Re: [rt.cpan.org #18756] Problems extracting information from at least one entry of 02packages.details.txt.gz
Date: Mon, 17 Apr 2006 12:20:31 -0500 (CDT)
To: bug-CPAN-DistnameInfo [...] rt.cpan.org
From: "Graham Barr" <gbarr [...] pobox.com>
On Mon, April 17, 2006 10:49 am, Guest via RT wrote: Show quoted text
> The CPAN::DistnameInfo fails to extract information at least for one > entry in the CPAN file 02packages.details.txt.gz.
That file has module version number not distribution version numbers. They do not always match. The name of the dist does not always exactly match the name of a module inside. Show quoted text
> Entries: > Spreadsheet::WriteExcel 2.16 > J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.16.tar.gz > Spreadsheet::WriteExcel::WebPivot 0.01 > N/NA/NATHANL/Spreadsheet-WriteExcel-WebPivot2.tar.gz
Well, given that they have not put the version on the name, it is not suprising it comes out with bad data. Perhaps it should fail completely, but many people use alpha characters in version naming schemes, so it is doing a best guess. In this case I would say it is an issue with the naming scheme the author has chosen. Graham.
From: jpo [...] di.uminho.pt
On Mon Apr 17 13:21:24 2006, gbarr@pobox.com wrote: Show quoted text
> On Mon, April 17, 2006 10:49 am, Guest via RT wrote: > ...[SNIP]...
> > Entries: > > Spreadsheet::WriteExcel 2.16 > > J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.16.tar.gz > > Spreadsheet::WriteExcel::WebPivot 0.01 > > N/NA/NATHANL/Spreadsheet-WriteExcel-WebPivot2.tar.gz
> > Well, given that they have not put the version on the name, it is not > suprising it comes out with bad data. Perhaps it should fail completely, > but many people use alpha characters in version naming schemes, so it is > doing a best guess.
Would it be possible to rollback the version/distro setting if the number of non-digit characters in the version-to-be is superior to number of digits? Show quoted text
> In this case I would say it is an issue with the naming scheme the author > has chosen.
Yes. I think it is best to nag the author/maintainer and ask him to create a new tarball with the module version in it as it also breaks the CPAN webpage (maybe it uses your module) http://search.cpan.org/dist/Spreadsheet-WriteExcel-WebPivot2/ The above page says the latest version of Spreadsheet-WriteExcel-WebPivot2 is available in the Spreadsheet-WriteExcel-2.16 tarball which is false. jpo PS - I'm perfectly aware of the nightmare version extraction/comparison is - I've been working as a Fedora Extras (and the older Fedora.us) packager.
From: jpo [...] di.uminho.pt
Humm... It is even impossible to follow the Spreadsheet-WriteExcel-WebPivot2 "View/report bugs" link in http://search.cpan.org/dist/Spreadsheet-WriteExcel-WebPivot2/ We are redirected to the Spreadsheet-WriteExcel RT component. Even RT doesn't appear to know the Spreadsheet-WriteExcel-WebPivot2 component: the link http://rt.cpan.org/Public/Dist/Display.html?Name=Spreadsheet-WriteExcel-WebPivot2 is invalid. jpo