This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: upset, genini: different version ordering


On 20/07/2015 19:03, Achim Gratz wrote:

I've just found that upset and genini will order versions differently.
For perl-Carp, genini produces:

version: 1.36-1
[prev]
version: 1.3301-2

while upset comes up with:

version: 1.3301-2
[prev]
version: 1.36-1

For the way Perl distributions are versioned, genini is correct here
(although it would fail when a distribution switches from x.y.z
versioning to canonical x.y versioning as PDL has done in the past).

Upset seems to order based on the individual parts in the split version
string?  In any case, at least for Perl distributions it should rather
use version objects.

http://search.cpan.org/~jpeacock/version-0.9912/lib/version.pod

If I recall correctly, genini is just broken, doing some kind of lexical sort which e.g. sorts 1.10 before 1.9.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]