зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1386149 - Add `mach artifact toolchain` support for toolchain aliases. r=gps
--HG-- extra : rebase_source : 0f0f2a2fc15f01a7a08b79225c614dd7586037b9
This commit is contained in:
Родитель
d2809543b9
Коммит
5d7fc58c7b
|
@ -1877,13 +1877,20 @@ class PackageFrontend(MachCommandBase):
|
|||
|
||||
toolchains = tasks('toolchain')
|
||||
|
||||
aliases = {}
|
||||
for t in toolchains.values():
|
||||
alias = t.attributes.get('toolchain-alias')
|
||||
if alias:
|
||||
aliases['toolchain-{}'.format(alias)] = \
|
||||
t.task['metadata']['name']
|
||||
|
||||
for b in from_build:
|
||||
user_value = b
|
||||
|
||||
if not b.startswith('toolchain-'):
|
||||
b = 'toolchain-{}'.format(b)
|
||||
|
||||
task = toolchains.get(b)
|
||||
task = toolchains.get(aliases.get(b, b))
|
||||
if not task:
|
||||
self.log(logging.ERROR, 'artifact', {'build': user_value},
|
||||
'Could not find a toolchain build named `{build}`')
|
||||
|
|
Загрузка…
Ссылка в новой задаче