Skip to content

Commit

Permalink
remove the sanitizeation of the version as we need the '-xxx' part
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-MrBeam committed Mar 16, 2022
1 parent 8ae5f09 commit 8af0455
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _get_latest_release(user, repo, compare_type,

comparable_factory = _get_comparable_factory(compare_type,
force_base=force_base)
sort_key = lambda release: comparable_factory(_get_sanitized_version(release["tag_name"]))
sort_key = lambda release: comparable_factory(release["tag_name"])

return _filter_out_latest(releases,
sort_key=sort_key,
Expand Down Expand Up @@ -253,8 +253,8 @@ def _is_current(release_information, compare_type, custom=None, force_base=True)
comparable_factory = _get_comparable_factory(compare_type, force_base=force_base)
comparator = _get_comparator(compare_type, custom=custom)

sanitized_local = _get_sanitized_version(release_information["local"]["value"])
sanitized_remote = _get_sanitized_version(release_information["remote"]["value"])
sanitized_local = release_information["local"]["value"]
sanitized_remote = release_information["remote"]["value"]

try:
return comparator(comparable_factory(sanitized_local),
Expand Down

0 comments on commit 8af0455

Please sign in to comment.