|
ginnOS
The reference: libc, the libraries and the kernel
|
librat: the order of versions, with the rules of Debian. More...
Functions | |
| int | rat_version_compare (const char *version_a, long release_a, const char *version_b, long release_b) |
| compare two versions of a package: first the versions, with the rules of Debian (digit runs as numbers, '~' before everything), then the releases. | |
librat: the order of versions, with the rules of Debian.
a version is a series of parts: a run of characters that are not digits, then a run of digits. rat compares the parts from the left. digit runs compare as numbers ("10" is after "9"). in the other runs, '~' is before everything (also the end), the end is before letters, and letters are before the other characters. so 1.0~rc1 < 1.0 < 1.0a < 1.0.1.
| int rat_version_compare | ( | const char * | version_a, |
| long | release_a, | ||
| const char * | version_b, | ||
| long | release_b ) |
compare two versions of a package: first the versions, with the rules of Debian (digit runs as numbers, '~' before everything), then the releases.