Bundle releases can also contain 0

This commit is contained in:
Marco Pesenti Gritti 2007-07-16 00:57:14 +02:00
parent 8bf79b4831
commit 9f4da4e6d1

View File

@ -241,7 +241,7 @@ def cmd_release(bundle_name, manifest):
info = f.read()
f.close()
exp = re.compile('activity_version\s?=\s?([1-9]*)')
exp = re.compile('activity_version\s?=\s?([0-9]*)')
match = re.search(exp, info)
version = int(match.group(1)) + 1
info = re.sub(exp, 'activity_version = %d' % version, info)