You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/08/03 22:31:26 UTC

[Bug 5031] Can't check Archive::Tar package version containing underscore

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5031





------- Additional Comments From felicity@apache.org  2006-08-03 20:31 -------
I'll leave this open for other comments, but IMO this is a bug in Archive::Tar.
 Specifically, reading the perlmodstyle POD:

       If you want to release a �beta� or �alpha� version of a module but don�t
want CPAN.pm to list it as     most recent use an �_� after the regular version
number followed by at least 2 digits, eg. 1.20_01.
       If you do this, the following idiom is recommended:

         $VERSION = "1.12_01";
         $XS_VERSION = $VERSION; # only needed if you have XS code
         $VERSION = eval $VERSION;

       With that trick MakeMaker will only read the first line and thus read the
underscore, while the perl
       interpreter will evaluate the $VERSION and convert the string into a
number. Later operations that
       treat $VERSION as a number will then be able to do so without provoking a
warning about $VERSION not
       being a number.



Our call to require a certain version of Archive::Tar is a standard/valid one:

use Archive::Tar 1.23;


So I'm inclined to close as WFM.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.