Skip to content

Commit

Permalink
fix: pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Sep 26, 2024
1 parent 68e11d5 commit 0268c5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions craft_providers/multipass/multipass.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def is_supported_version(self) -> bool:
try:
parsed_version = packaging.version.parse(version)
except packaging.version.InvalidVersion:
# This catches versions such as: 1.15.0-dev.2929.pr661, which are
# compliant, but not pep440 compliant. We can lob off sections until
# we get a pep440 cempliant version.
version = version.rpartition(".")[0]

return parsed_version >= minimum_version
Expand Down

0 comments on commit 0268c5a

Please sign in to comment.