summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/version2k.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/version2k.py b/build/version2k.py
index 7e2e3f30b..6ef5609c2 100644
--- a/build/version2k.py
+++ b/build/version2k.py
@@ -27,8 +27,8 @@ if args.version:
if (strVersion.endswith('.0000')):
strVersion = strVersion.replace('.0000', '.' + msBuildToday + 'a1')
- if len(args.version) == 2 and args.version[1] == 'build':
- if strVersion.endswith('a1'):
+ if len(args.version) == 2 and args.version[1] == 'build':
+ if strVersion.endswith(('a1', '.1')):
print strVersion[len(strVersion) - 6:]
else:
print strVersion[len(strVersion) - 4:]