HomeSoftware Heritage

conda: Fix versions sorting and update release names

Description

conda: Fix versions sorting and update release names

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

Conda loader used the keys of the packages dict as version numbers to sort,
which are in the form "<arch>/<version>-<build>", 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 "<version>-<build>-<arch>" as each
release for a given architecture targets a different directory.

Details

Provenance
anlambertAuthored on Dec 20 2022, 12:24 PM
anlambertPushed on Dec 20 2022, 1:34 PM
Differential Revision
D8974: conda, rpm: Fix package versions sorting
Parents
rDLDBASEb6231045473d: rpm: Fix package versions sorting
Branches
Unknown
Tags
Unknown
References
HEAD -> master
Build Status
Buildable 33322
Build 52227: test-and-buildJenkins console · Jenkins