Skip to content

Commit

Permalink
py/makeversionhdr.py: Always add micro to version string even if it's 0.
Browse files Browse the repository at this point in the history
Moving forward, tags in this repository will always have three components.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Mar 10, 2023
1 parent 4376c96 commit 668a7bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions py/makeversionhdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def get_version_info_from_mpconfig(repo_path):
ver_minor = int(line.strip().split()[2])
elif line.startswith("#define MICROPY_VERSION_MICRO "):
ver_micro = int(line.strip().split()[2])
git_tag = "v%d.%d" % (ver_major, ver_minor)
if ver_micro != 0:
git_tag += ".%d" % (ver_micro,)
git_tag = "v%d.%d.%d" % (ver_major, ver_minor, ver_micro)
return git_tag, "<no hash>"
return None

Expand Down

0 comments on commit 668a7bd

Please sign in to comment.