зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1547730 - Update a build moz.configure function, to support py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28115 --HG-- extra : rebase_source : 54c468d5d12b095a0f801ce4a03a9a9ebf16ab7e extra : intermediate-source : 46b3a241fae43899ad98fbe4443dae69bd7ca03b extra : source : fc252c3d136d67773d4cd289b27e837799e511d2
This commit is contained in:
Родитель
a143ae4aca
Коммит
a287dbef6e
|
@ -306,6 +306,7 @@ early_options = early_options()
|
|||
# This gives access to the sandbox. Don't copy this blindly.
|
||||
@imports('__sandbox__')
|
||||
@imports('os')
|
||||
@imports('six')
|
||||
def mozconfig_options(mozconfig, automation, help):
|
||||
if mozconfig['path']:
|
||||
if 'MOZ_AUTOMATION_MOZCONFIG' in mozconfig['env']['added']:
|
||||
|
@ -331,15 +332,15 @@ def mozconfig_options(mozconfig, automation, help):
|
|||
log.info(' %s' % arg)
|
||||
helper.add(arg, origin='mozconfig', args=helper._args)
|
||||
|
||||
for key, value in mozconfig['env']['added'].iteritems():
|
||||
for key, value in six.iteritems(mozconfig['env']['added']):
|
||||
add(key, value)
|
||||
os.environ[key] = value
|
||||
for key, (_, value) in mozconfig['env']['modified'].iteritems():
|
||||
for key, (_, value) in six.iteritems(mozconfig['env']['modified']):
|
||||
add(key, value)
|
||||
os.environ[key] = value
|
||||
for key, value in mozconfig['vars']['added'].iteritems():
|
||||
for key, value in six.iteritems(mozconfig['vars']['added']):
|
||||
add(key, value)
|
||||
for key, (_, value) in mozconfig['vars']['modified'].iteritems():
|
||||
for key, (_, value) in six.iteritems(mozconfig['vars']['modified']):
|
||||
add(key, value)
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче