Make version fourth number start from 1

instead of 0 which blocks auto updates in Chrome at least.
This commit is contained in:
yvanzo 2018-02-17 11:20:50 +01:00
parent 092d3c9eb5
commit 1771336a34

View file

@ -26,7 +26,7 @@ To test without modifying file, use stdin:
def make_version_line(old_value='0.0.0.0', spacing=' '*8, eol="\n"):
prev_version = [int(x) for x in old_value.split('.')]
now = datetime.datetime.utcnow()
version = [now.year, now.month, now.day, 0]
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)