Skip to content

Commit

Permalink
Fix bug in release script
Browse files Browse the repository at this point in the history
Fix bug in release script which made it ignore the first release tag
(i.e., v1.0.0).

Signed-off-by: Mattias Rönnblom <[email protected]>
  • Loading branch information
m-ronnblom committed Sep 7, 2023
1 parent 7c57f93 commit b0c770e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devtools/check-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b0c770e

Please sign in to comment.