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

toolchest.rpm.utils.componentize(builds)[source]
toolchest.rpm.utils.cpaas_label_compare(left, right)[source]
toolchest.rpm.utils.dlrn_label_compare(left, right)[source]
toolchest.rpm.utils.drop_epoch(nevra)[source]
toolchest.rpm.utils.labelCompare(left, right)[source]
toolchest.rpm.utils.label_compare(left, right)[source]
toolchest.rpm.utils.splitFilename(nvr)[source]
toolchest.rpm.utils.split_filename(nvr)[source]
toolchest.rpm.utils.split_filename_fast(nvr)[source]