From b0c770e2dbc882ae069a45b1a5fb2a1c728e04aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Date: Thu, 7 Sep 2023 14:46:32 +0200 Subject: [PATCH] Fix bug in release script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix bug in release script which made it ignore the first release tag (i.e., v1.0.0). Signed-off-by: Mattias Rönnblom --- devtools/check-release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/check-release.py b/devtools/check-release.py index b6a2606..bb828ef 100755 --- a/devtools/check-release.py +++ b/devtools/check-release.py @@ -110,7 +110,7 @@ def get_prev_release_tag(repo, release_version): candidate = None - for tag in release_tags[1:]: + for tag in release_tags: v = get_tag_version(tag) if v.major != release_version.major or \ @@ -194,7 +194,7 @@ def check_meta(repo, release_commit): else: prev_hdr_version = get_hdr_version(prev_release_tag.commit, prev_release_tag) - prev_reg_version = get_tag_version(prev_release_tag) + prev_tag_version = get_tag_version(prev_release_tag) print("Release information:") print(" Header version (from \"tpaf_version.h\"): %s" % hdr_version)