Commit 668a7bd2 authored by Damien George's avatar Damien George

py/makeversionhdr.py: Always add micro to version string even if it's 0.

Moving forward, tags in this repository will always have three components.
Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 4376c969
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment