Skip to content

Fix tilde compare - #4

Merged
memory merged 3 commits into
masterfrom
fix-tilde-compare
Nov 23, 2020
Merged

Fix tilde compare#4
memory merged 3 commits into
masterfrom
fix-tilde-compare

Conversation

@memory

@memory memory commented Nov 20, 2020

Copy link
Copy Markdown
Owner

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