Use the latest prerelease but count from the latest stable

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-07-12 11:08:22 +02:00 committed by jspijker
parent 5dd1798979
commit fcc1a38e3f

View File

@ -98,8 +98,9 @@ jobs:
version = tools.Version(tag) version = tools.Version(tag)
except ConanException: except ConanException:
continue continue
if version > latest_branch_version and version.prerelease is "": if version > latest_branch_version:
latest_branch_version = version latest_branch_version = version
if version.prerelease_tag is "":
latest_branch_tag = repo.tag(tag) latest_branch_tag = repo.tag(tag)
# %% Get the actual version # %% Get the actual version