зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256574 - Make the part writing and executing config.status importable for c-c. r=gps
This commit is contained in:
Родитель
40a0583b09
Коммит
64851de576
|
@ -24,6 +24,10 @@ def main(argv):
|
||||||
if sandbox._help:
|
if sandbox._help:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
return config_status(config)
|
||||||
|
|
||||||
|
|
||||||
|
def config_status(config):
|
||||||
# Sanitize config data to feed config.status
|
# Sanitize config data to feed config.status
|
||||||
sanitized_config = {}
|
sanitized_config = {}
|
||||||
sanitized_config['substs'] = {
|
sanitized_config['substs'] = {
|
||||||
|
@ -69,5 +73,6 @@ if __name__ == '__main__':
|
||||||
return subprocess.call([config['PYTHON'], 'config.status'])
|
return subprocess.call([config['PYTHON'], 'config.status'])
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main(sys.argv))
|
sys.exit(main(sys.argv))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче