Stop padding version month and day with leading 0

as it blocks auto updates in Chrome at least.
This commit is contained in:
yvanzo 2018-02-17 11:27:00 +01:00
parent 1771336a34
commit 5da3cceb85

View file

@ -29,7 +29,7 @@ def make_version_line(old_value='0.0.0.0', spacing=' '*8, eol="\n"):
version = [now.year, now.month, now.day, 1]
if prev_version[:3] == version[:3]:
version[3] = prev_version[3] + 1
version_str = '%04d.%02d.%02d.%d' % tuple(version)
version_str = '%04d.%d.%d.%d' % tuple(version)
return ('// @version' + spacing + version_str + eol, version_str)