This commit is contained in:
Piotr Zalewa 2012-01-25 22:47:48 +01:00
Родитель 320e45002e
Коммит a87be248e0
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -79,7 +79,7 @@ def build(sdk_dir, package_dir, filename, hashtag, tstart=None, options=None):
try:
process = subprocess.Popen(cfx, shell=False, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, env=env)
processresponse = process.communicate()
response = process.communicate()
except subprocess.CalledProcessError, err:
info_write(info_targetpath, 'error', str(err), hashtag)
log.critical("[xpi:%s] Failed to build xpi: %s. Command(%s)" % (
@ -88,10 +88,10 @@ def build(sdk_dir, package_dir, filename, hashtag, tstart=None, options=None):
raise
if (waffle.switch_is_active('SDKErrorInStdOutWorkaround') and
not os.path.exists(os.path.join(package_dir, '%s.xpi' % filename))):
badresponse = processresponse[0]
badresponse = response[0]
response = ['', '']
response[1] = badresponse
if processresponse.returncode != 0:
if response[1]:
info_write(info_targetpath, 'error', response[1], hashtag)
log.critical("[xpi:%s] Failed to build xpi." % hashtag)
shutil.rmtree(sdk_dir)