HomeSoftware Heritage

rpm: Fix package versions sorting

Description

rpm: Fix package versions sorting

Release 22.0 of packaging module can no longer parse invalid Python version
number, an exception is now raised.

RPM loader used the keys of the packages dict as version numbers to sort,
which are in the form "<distribution>/<edition>/<package_version_number>",
but those cannot be parsed anymore.

So use intrinsic version numbers of packages instead to sort the list of
versions.

Details

Provenance
anlambertAuthored on Dec 20 2022, 11:34 AM
anlambertPushed on Dec 20 2022, 1:34 PM
Differential Revision
D8974: conda, rpm: Fix package versions sorting
Parents
rDLDBASEe7ac7a3475ad: Disable reporting of NotFound exceptions to Sentry
Branches
Unknown
Tags
Unknown
Build Status
Buildable 33321
Build 52226: test-and-buildJenkins console · Jenkins