Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tilde compare #4

Merged
merged 3 commits into from
Nov 23, 2020
Merged

Fix tilde compare #4

merged 3 commits into from
Nov 23, 2020

Conversation

memory
Copy link
Owner

@memory memory commented Nov 20, 2020

This PR fixes #3, which
correctly notes that comparisons of debian versions that share a
common root but where the first additional character of the longer
version string is a tilde were being handled incorrectly.

Also, while we're here:

  • format with Black
  • test under python 3.9
  • update pep8 test to agree with Black's default line length
  • add a TODO to refactor the compare_versions function, which
    now fails pylint's too-many-branches test

This PR fixes #3, which
correctly notes that comparisons of debian versions that share a
common root but where the first additional character of the longer
version string is a tilde were being handled incorrectly.

Also, while we're here:

- format with Black
- test under python 3.9
- update pep8 test to agree with Black's default line length
- add a TODO to refactor the compare_versions function, which
  now fails pylint's too-many-branches test
@memory memory merged commit 1a7c022 into master Nov 23, 2020
@memory memory deleted the fix-tilde-compare branch November 23, 2020 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect debian version comparisons with tilde
2 participants