зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1419182 - Hard code whitelist key; r=mshal
We only call this function once. Behavior doesn't need to be parameterized. MozReview-Commit-ID: BR6WU4GSeyO --HG-- extra : rebase_source : 873e3860efee3abb06e987c9747dfec4ba851e5a
This commit is contained in:
Родитель
e4bc53aec9
Коммит
6055e47e96
|
@ -36,12 +36,10 @@ def make_hg_url(hgHost, repoPath, protocol='https', revision=None,
|
|||
return '/'.join([p.strip('/') for p in [repo, 'raw-file', revision,
|
||||
filename]])
|
||||
|
||||
def readConfig(configfile, keys=[]):
|
||||
def readConfig(configfile):
|
||||
c = {}
|
||||
execfile(configfile, c)
|
||||
for k in keys:
|
||||
c = c[k]
|
||||
return c
|
||||
return c['whitelist']
|
||||
|
||||
def verify_mozconfigs(mozconfig_pair, nightly_mozconfig_pair, platform,
|
||||
mozconfigWhitelist={}):
|
||||
|
@ -137,7 +135,7 @@ if __name__ == '__main__':
|
|||
logging.error('Not enough arguments to download mozconfigs')
|
||||
sys.exit(FAILURE_CODE)
|
||||
|
||||
mozconfig_whitelist = readConfig(options.whitelist, ['whitelist'])
|
||||
mozconfig_whitelist = readConfig(options.whitelist)
|
||||
|
||||
for arg in args:
|
||||
platform, mozconfig_path, nightly_mozconfig_path = arg.split(',')
|
||||
|
|
Загрузка…
Ссылка в новой задаче