forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable trailing '_' to anchor openssl-like versions
Openssl versions should sort e.g. [1.0.1, 1.0.1a, 1.0.1b] etc., however this is incompatible with most other version sort conventions and therefore conda sorts as [1.0.1a, 1.0.1b, 1.0.1]. The VersionOrder docstring anticipates the need to anchor an openssl-like version sequence at e.g. 1.0.1, and indicates that appending a dash to the version will accomplish that goal. However dashes have never been allowed in versions due to dashes being the delimiters for the legacy 'dist' string. This commit modifies the anchoring functionality to be provided by appending an underscore rather than a dash. Therefore a sort order of [1.0.1_, 1.0.1a, 1.0.1b, 1.0.1] holds. Note that previous versions of conda prior to this commit will blow up with VersionOrder("1.0.1_") or MatchSpec("openssl=1.0.1_") being an invalid version. Therefore this convention cannot show up in repodata without crashing all current versions of conda. This PR also doesn't break current versions of conda though, because MatchSpec("openssl=1.0.1-") was never valid.
- Loading branch information
Showing
3 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters