toolchest.rpm¶
- toolchest.rpm.rpmvercmp.labelCompare(left, right)[source]¶
Determines which label tuple has a higher value.
This is for purposes of determining with version of a build is newer, or if they are equivalent taking into account epoch, version, release.
- Parameters
left – The left value to compare. Must be a tuple of (epoch, version, release) or (version, release).
right – The right value to compare. Must be a tuple of (epoch, version, release) or (version, release).
- Returns
-1, 0, or 1 if the left value is less than, equal to, or greater than, the right value, respectively.
- toolchest.rpm.rpmvercmp.rpmvercmp(left, right)[source]¶
Determines which label string has a higher value.
This is for purposes of determining with version of a build is newer, or if they are equivalent based on string comparison.
- Parameters
left – The left value to compare. Must be a string.
right – The right value to compare. Must be a string.
- Returns
-1, 0, or 1 if the left value is less than, equal to, or greater than, the right value, respectively