This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
27240
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Marek.Rouchal [...] gmx.net
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
1.9102
Fixed in:
(no value)



Subject: version numbering confusion
When running the 'r' command from the CPAN shell, I get this entry (among others): Mail::SPF v2.004 2.004000 JMEHNLE/mail-spf/Mail- SPF-2.004.tar.gz Seems that CPAN is somehow confused about version string / v-string / version-number - I installed this version of the bundle. Cheers, Marek
From: john@nixnuts.net
Same issue comes up with Mail::SPF v2.005 and Net::DNS::Resolver::Programmable v0.003 The problem is that CPAN::Version::vcmp() doesn't clean up the leading 'v' in the version string if there is only one decimal point.
--- Version.pm.orig 2006-12-18 13:59:18.000000000 -0600 +++ Version.pm 2007-06-28 18:34:24.000000000 -0500 @@ -17,7 +17,7 @@ } CPAN->debug("l[$l] r[$r]") if $CPAN::DEBUG; for ($l,$r) { - next unless tr/.// > 1; + next unless (tr/.// > 1 || $l =~ /^v/ || $r =~ /^v/); s/^v?/v/; 1 while s/\.0+(\d)/.$1/; # remove leading zeroes per group }
Thanks, a similar fix has been applied as rev. 1917 to the subversion repository and will be in the next release


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.