Should set low version field to 0 in bump-version.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 16 Mar 2014 11:02:59 +0000 (19:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 16 Mar 2014 11:06:36 +0000 (19:06 +0800)
script/bump-version.py

index a5067e9c5f60074aa47cbb53769743d92292517d..485097fe53bfeb78ec42fbe9cecb9ac90eba2bb6 100755 (executable)
@@ -48,6 +48,8 @@ def parse_version(version):
 
 
 def increase_version(versions, index):
+  for i in range(index + 1, 4):
+    versions[i] = '0'
   versions[index] = str(int(versions[index]) + 1)
   return versions