HomeSoftware Heritage

rpm: Fix package versions sorting

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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
Build Status
Buildable 33321
Build 52226: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.