Skip to content

conda, 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 "//<package_version_number>", but those cannot be parsed anymore.

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


Conda loader used the keys of the packages dict as version numbers to sort, which are in the form "/-", but those cannot be parsed anymore.

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

Also update snapshot release names to "--" as each release for a given architecture targets a different directory.


Migrated from D8974 (view on Phabricator)

Merge request reports