Bug 1649901 - Improve reproducibility of config_status_deps.in files r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D81925
This commit is contained in:
Ricky Stewart 2020-07-01 22:55:52 +00:00
parent 679c0cbb7a
commit 6983088e37

View file

@ -146,9 +146,10 @@ def config_status(config):
# relevant Python changes.
with io.open('config_status_deps.in', 'w', encoding='utf-8',
newline='\n') as fh:
for f in itertools.chain(config['CONFIG_STATUS_DEPS'],
iter_modules_in_path(config['TOPOBJDIR'],
config['TOPSRCDIR'])):
for f in sorted(
itertools.chain(config['CONFIG_STATUS_DEPS'],
iter_modules_in_path(config['TOPOBJDIR'],
config['TOPSRCDIR']))):
fh.write('%s\n' % mozpath.normpath(f))
# Other things than us are going to run this file, so we need to give it