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:
Ben Hearsum 2018-02-07 14:50:10 -05:00
parent 85569e86c1
commit 3403f15207

View File

@ -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: