| Index: sitescripts/extensions/bin/createNightlies.py | 
| =================================================================== | 
| --- a/sitescripts/extensions/bin/createNightlies.py | 
| +++ b/sitescripts/extensions/bin/createNightlies.py | 
| @@ -296,39 +296,39 @@ class NightlyBuild(object): | 
| if self.config.type == 'android': | 
| apkFile = open(self.path, 'wb') | 
|  | 
| try: | 
| try: | 
| port = get_config().get('extensions', 'androidBuildPort') | 
| except ConfigParser.NoOptionError: | 
| port = '22' | 
| -                buildCommand = ['ssh', '-p', port, get_config().get('extensions', 'androidBuildHost')] | 
| -                buildCommand.extend(map(pipes.quote, [ | 
| +                command = ['ssh', '-p', port, get_config().get('extensions', 'androidBuildHost')] | 
| +                command.extend(map(pipes.quote, [ | 
| '/home/android/bin/makedebugbuild.py', '--revision', | 
| self.buildNum, '--version', self.version, '--stdout' | 
| ])) | 
| -                subprocess.check_call(buildCommand, stdout=apkFile, close_fds=True) | 
| +                subprocess.check_call(command, stdout=apkFile, close_fds=True) | 
| except: | 
| # clear broken output if any | 
| if os.path.exists(self.path): | 
| os.remove(self.path) | 
| raise | 
| else: | 
| env = os.environ | 
| spiderMonkeyBinary = self.config.spiderMonkeyBinary | 
| if spiderMonkeyBinary: | 
| env = dict(env, SPIDERMONKEY_BINARY=spiderMonkeyBinary) | 
|  | 
| -            buildCommand = [ | 
| -                os.path.join(self.tempdir, 'build.py'), '-t', self.config.type, | 
| -                'build', '-b', self.buildNum, '-k', self.config.keyFile, | 
| -                self.path | 
| -            ] | 
| -            subprocess.check_call(buildCommand, env=env) | 
| +            command = [os.path.join(self.tempdir, 'build.py'), | 
| +                       '-t', self.config.type, 'build', '-b', self.buildNum] | 
| +            if self.config.type != 'gecko': | 
| +                command.extend(['-k', self.config.keyFile]) | 
| +            command.append(self.path) | 
| +            subprocess.check_call(command, env=env) | 
|  | 
| if not os.path.exists(self.path): | 
| raise Exception("Build failed, output file hasn't been created") | 
|  | 
| linkPath = os.path.join(baseDir, '00latest%s' % self.config.packageSuffix) | 
| if hasattr(os, 'symlink'): | 
| if os.path.exists(linkPath): | 
| os.remove(linkPath) | 
|  |