Index: build.py |
=================================================================== |
--- a/build.py |
+++ b/build.py |
@@ -180,17 +180,19 @@ def runBuild(baseDir, scriptName, opts, |
buildNum = None |
multicompartment = False |
releaseBuild = False |
keyFile = None |
for option, value in opts: |
if option in ('-l', '--locales'): |
locales = value.split(',') |
elif option in ('-b', '--build'): |
- buildNum = int(value) |
+ buildNum = value |
+ if type != 'gecko' and not re.search(r'^\d+$', buildNum): |
+ raise TypeError('Build number must be numerical') |
elif option in ('-k', '--key'): |
keyFile = value |
elif option in ('-m', '--multi-compartment'): |
multicompartment = True |
elif option in ('-r', '--release'): |
releaseBuild = True |
outFile = args[0] if len(args) > 0 else None |