Subject: | Version compare logic doesn't handle alphas? |
I wanted to install the alpha version of CPAN::YACSmoke so I tried this:
$ cpanp
CPANPLUS::Shell::Default -- CPAN exploration and module installation
(v0.82)
*** Please report bugs to <bug-cpanplus@rt.cpan.org>.
*** Using CPANPLUS::Backend v0.82. ReadLine support enabled.
*** Type 'p' now to show start up log
Did you know...
You can update CPANPLUS by running: 's selfupdate'
CPAN Terminal> s conf verbose 1
Key 'verbose' was set to '1'
CPAN Terminal> install /R/RR/RRWO/CPAN-YACSmoke-0.03_07.tar.gz
[MSG] Checking if source files are up to date
[MSG] Retrieving /Users/schwern/.cpanplus/sourcefiles.2.16.stored
Installing CPAN::YACSmoke (0.03_07)
[MSG] Module 'CPAN::YACSmoke' already up to date, won't install
without force
*** Install log written to:
/Users/schwern/.cpanplus/install-logs/CPAN-YACSmoke-0.03_07-1189714549.log
Module 'CPAN::YACSmoke' installed successfully
No errors installing all modules
It figured out that I wanted to install CPAN::YACSmoke 0.03_07 and came
to the wrong conclusion about it being up to date. My installed version
is 0.03.
$ perl -wle 'use CPAN::YACSmoke; print $CPAN::YACSmoke::VERSION'
0.03
I suspect the version comparison logic doesn't handle alphas.