From bede1032b2b6307ac503feed39e2609736c56d5d Mon Sep 17 00:00:00 2001 From: Emilio Dalla Torre Date: Sat, 17 Feb 2024 18:49:30 +0100 Subject: [PATCH] Fixed bumping also build number --- fvupgrader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fvupgrader.py b/fvupgrader.py index 156ff52..d4f953e 100755 --- a/fvupgrader.py +++ b/fvupgrader.py @@ -69,9 +69,9 @@ def get_available_next_versions(directory_path: str) -> list: current_version = current_version.replace("+", ".") major, minor, patch, build = current_version.split(".") return [ - f"{major}.{minor}.{int(patch) + 1}+{build}", - f"{major}.{int(minor) + 1}.0+{build}", - f"{int(major) + 1}.0.0+{build}", + f"{major}.{minor}.{int(patch) + 1}+{build + 1}", + f"{major}.{int(minor) + 1}.0+{build + 1}", + f"{int(major) + 1}.0.0+{build + 1}", ]