Documentation ¶
Overview ¶
Package version provides functions for comparing RPM package versions. This implementation is tested for correctness by passing the same inputs to the original implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare compares the version details of two packages. Versions are compared by Epoch, Version and Release in descending order of precedence.
If a is more recent than b, 1 is returned. If a is less recent than b, -1 is returned. If a and b are equal, 0 is returned.
This function does not consider if the two packages have the same name or if either package has been made obsolete by the other.
Types ¶
Click to show internal directories.
Click to hide internal directories.