Bug 1799769 - Fix KeyError: 'public/build/target.deb' regression that occurs when generating the full taskgraph outside of mach r=hneiva

Differential Revision: https://phabricator.services.mozilla.com/D173858
This commit is contained in:
Gabriel Bustamante 2023-03-29 01:18:16 +00:00
Родитель c48a09a93c
Коммит 8eed7aca87
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -523,7 +523,10 @@ def generate_artifact_registry_gcs_sources(dep):
repackage_deb_reference = "<repackage-deb-l10n>"
repackage_deb_artifact = f"public/build/{locale}/target.langpack.deb"
for config in dep.task["payload"]["artifactMap"]:
if config["taskId"]["task-reference"] == repackage_deb_reference:
if (
config["taskId"]["task-reference"] == repackage_deb_reference
and repackage_deb_artifact in config["paths"]
):
gcs_sources.append(
config["paths"][repackage_deb_artifact]["destinations"][0]
)