[pacman-dev] about vercmp tools
mcu GPS
zlbgps at gmail.com
Sun Oct 18 23:17:00 EDT 2009
usage: vercmp <ver1> <ver2>
return values:
< 0 : if ver1 < ver2
0 : if ver1 == ver2
> 0 : if ver1 > ver2
[arch at myarchtp mkarchlive] $ vercmp 0.1 0.1_rc1
-1
[arch at myarchtp mkarchlive] $ vercmp 0.1_rc1 0.1
1
[arch at myarchtp mkarchlive] $ vercmp 0.1_rc1 0.1_r1
1
[arch at myarchtp mkarchlive] $ vercmp 0.1_r1 0.1_rc1
-1
0.1_rc1 > 0.1 ?
0.1_rc1 > 0.1_r1 ?
this is a bug?
More information about the pacman-dev
mailing list