Misc: Update @version to match the new version format.

This commit is contained in:
Valentin Lorentz 2014-03-03 16:22:32 +00:00
parent c84a7ac094
commit 4f7caa78e4

View File

@ -315,7 +315,7 @@ class Misc(callbacks.Plugin):
.decode('utf8'))
version = data['commit']['committer']['date']
# Strip the last 'Z':
version = ''.join(version.rsplit('Z', 1)).replace(':', '-')
version = version.rsplit('T', 1)[0].replace('-', '.')
if sys.version_info[0] < 3 and isinstance(version, unicode):
version = version.encode('utf8')
versions[branch] = version