mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Don't mark version as released for pre-releases
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
22092526e7
commit
e07baf0b9e
1 changed files with 2 additions and 2 deletions
|
@ -171,8 +171,8 @@ def set_salt_version(
|
|||
|
||||
ctx.info(f"Successfuly wrote {salt_version!r} to 'salt/_version.txt'")
|
||||
|
||||
if release:
|
||||
version_instance = tools.utils.Version(salt_version)
|
||||
version_instance = tools.utils.Version(salt_version)
|
||||
if release and not version_instance.is_prerelease:
|
||||
with open(tools.utils.REPO_ROOT / "salt" / "version.py", "r+") as rwfh:
|
||||
contents = rwfh.read()
|
||||
match = f"info=({version_instance.major}, {version_instance.minor}))"
|
||||
|
|
Loading…
Add table
Reference in a new issue