[arch-haskell] RFQ: Proposal for new versioning of packages

Xyne xyne at archlinux.ca
Sat May 2 15:31:53 UTC 2015


On 2015-04-30 08:25 +0200
Fabien Dubosson wrote:

>> The issue I'm worried about is that of trailing zeroes.  Is 2.1_1 < 2.1.1_0?
>
>warning: downgrading package dummy (2.1.1_0-1 => 2.1_1-1)

In case you were not aware of it, pacman provides an executable named "vercmp"
to compare versions. It also provides a vercmp manpage to explain how ALPM's
version comparison function works.

$ vercmp 2.1_1 2.1.1_0
-1

The underscore system seems to work as expected. I was afraid that it would
trigger alphanumeric comparisons (e.g. 2.3_0 > 2.24_0) but it does not:

$ vercmp 2.r3_0 2.r24_0
-1

Regards,
Xyne


More information about the arch-haskell mailing list