| Index: build.py |
| diff --git a/build.py b/build.py |
| index f5fc55c8ff7f8bba6376fcd5a131c9cb6ad2cd96..b3c62a6e5da7a13db5091168cd9d1e86da55d0aa 100644 |
| --- a/build.py |
| +++ b/build.py |
| @@ -182,7 +182,8 @@ def runBuild(baseDir, scriptName, opts, args, type): |
| kwargs['locales'] = value.split(',') |
| elif option in {'-b', '--build'}: |
| kwargs['buildNum'] = value |
| - if type not in {'gecko', 'gecko-webext'} and not kwargs['buildNum'].isdigit(): |
|
Sebastian Noack
2017/08/25 12:54:17
This line doesn't exist in the version in the mast
tlucas
2017/08/25 13:07:49
Done.
|
| + no_gecko_build = type not in {'gecko', 'gecko-webext'} |
| + if no_gecko_build and not kwargs['buildNum'].isdigit(): |
| raise TypeError('Build number must be numerical') |
| elif option in {'-k', '--key'}: |
| kwargs['keyFile'] = value |