
2 May
2015
2 May
'15
11:31 a.m.
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