Skip to content

Commit 668a7bd

Browse files
committed
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: Damien George <[email protected]>
1 parent 4376c96 commit 668a7bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

py/makeversionhdr.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def get_version_info_from_mpconfig(repo_path):
7878
ver_minor = int(line.strip().split()[2])
7979
elif line.startswith("#define MICROPY_VERSION_MICRO "):
8080
ver_micro = int(line.strip().split()[2])
81-
git_tag = "v%d.%d" % (ver_major, ver_minor)
82-
if ver_micro != 0:
83-
git_tag += ".%d" % (ver_micro,)
81+
git_tag = "v%d.%d.%d" % (ver_major, ver_minor, ver_micro)
8482
return git_tag, "<no hash>"
8583
return None
8684

0 commit comments

Comments
 (0)