Skip to content
Snippets Groups Projects

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

Approved by

Closed by Phabricator Migration userPhabricator Migration user 2 years ago (Dec 20, 2022 12:34pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading