Skip to content
Snippets Groups Projects

conda, rpm: Fix package versions sorting

  1. Dec 20, 2022
    • Antoine Lambert's avatar
      conda: Fix versions sorting and update release names · a63b39e5
      Antoine Lambert authored
      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.
      a63b39e5
    • Antoine Lambert's avatar
      rpm: Fix package versions sorting · b6231045
      Antoine Lambert authored
      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.
      b6231045
Loading