зеркало из https://github.com/mozilla/gecko-dev.git
bug 1398799: don't add depedencies when current task and upstream task don't have a matching build platform. r=aki
This commit is contained in:
Родитель
85569e86c1
Коммит
3403f15207
|
@ -59,6 +59,11 @@ def add_dependencies(config, jobs):
|
|||
dep_phase = dep_task.attributes.get('shipping_phase')
|
||||
if dep_phase and PHASES.index(dep_phase) > PHASES.index(phase):
|
||||
continue
|
||||
|
||||
if dep_task.attributes.get("build_platform") and \
|
||||
job.get("attributes", {}).get("build_platform"):
|
||||
if dep_task.attributes["build_platform"] != job["attributes"]["build_platform"]:
|
||||
continue
|
||||
# Add matching product tasks to deps
|
||||
if _get_product(dep_task.task) == product or \
|
||||
dep_task.attributes.get('shipping_product') == product:
|
||||
|
|
Загрузка…
Ссылка в новой задаче