Skip Menu |

This queue is for tickets about the Chart-Graph CPAN distribution.

Report information
The Basics
Id: 107568
Status: open
Priority: 0/
Queue: Chart-Graph

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

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



Subject: decreasing versions
Versions with 2 dots are converted to real numbers. 0.1.1 means 0.001001. So 0.1 > 0.1.1. Versions with one dot are real numbers. So 0.9 > 0.10. Best is to delete distributions that have bigger versions that latest (that will help new installations). And upload new distribution with correct version (that will help users that have older version installed). -- Alexandr Ciornii, http://chorny.net
On 2015-10-06 04:34:03, CHORNY wrote: Show quoted text
> Versions with 2 dots are converted to real numbers. 0.1.1 means > 0.001001. So 0.1 > 0.1.1. > Versions with one dot are real numbers. So 0.9 > 0.10. > Best is to delete distributions that have bigger versions that latest > (that will help new installations). And upload new distribution with > correct version (that will help users that have older version > installed).
... and here's a programmatic check: $ perl -MTest::More=no_plan -Mversion -e 'ok(version->new("v3.3.1") > version->new("3.2"))' not ok 1 # Failed test at -e line 1. 1..1 # Looks like you failed 1 test of 1.