Bug 1562686 - revert remaining unnecessary bit of bug 1187245; r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D42644

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dustin J. Mitchell 2019-08-23 12:32:02 +00:00
Родитель af8483e1ae
Коммит 23d547abce
2 изменённых файлов: 0 добавлений и 19 удалений

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

@ -104,8 +104,6 @@ class MachCommands(MachCommandBase):
env['MOZ_DISABLE_NONLOCAL_CONNECTIONS'] = '1'
env['XPCOM_DEBUG_BREAK'] = 'warn'
env.update(self.extra_environment_variables)
outputHandler = OutputHandler(self.log)
kp_kwargs = {'processOutputLine': [outputHandler]}

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

@ -384,23 +384,6 @@ class MozbuildObject(ProcessExecutionMixin):
return platform_name, bits + 'bit'
@memoized_property
def extra_environment_variables(self):
'''Some extra environment variables are stored in .mozconfig.mk.
This functions extracts and returns them.'''
from mozbuild import shellutil
mozconfig_mk = os.path.join(self.topobjdir, '.mozconfig.mk')
env = {}
with open(mozconfig_mk) as fh:
for line in fh:
if line.startswith('export '):
exports = shellutil.split(line)[1:]
for e in exports:
if '=' in e:
key, value = e.split('=')
env[key] = value
return env
@memoized_property
def repository(self):
'''Get a `mozversioncontrol.Repository` object for the