Commit da07b5cb authored by José Henrique's avatar José Henrique
Browse files

Fix build repo branch

parent e09a8493
......@@ -37,18 +37,22 @@ if build_env_vars["version"] == "ten":
build_env_vars["manifest_url"] = manifest_url_main
build_env_vars["manifest_branch"] = "ten"
build_env_vars["fallback_branch"] = build_env_vars["manifest_branch"]
build_env_vars["build_repo_branch"] = build_env_vars["manifest_branch"]
elif build_env_vars["version"] == "ten_plus":
build_env_vars["manifest_url"] = manifest_url_main
build_env_vars["manifest_branch"] = "ten-plus"
build_env_vars["fallback_branch"] = "ten"
build_env_vars["build_repo_branch"] = build_env_vars["manifest_branch"]
elif build_env_vars["version"] == "eleven":
build_env_vars["manifest_url"] = manifest_url_main
build_env_vars["manifest_branch"] = "eleven"
build_env_vars["fallback_branch"] = "eleven"
build_env_vars["build_repo_branch"] = build_env_vars["fallback_branch"]
elif build_env_vars["version"] == "eleven_plus":
build_env_vars["manifest_url"] = manifest_url_main
build_env_vars["manifest_branch"] = "eleven-plus"
build_env_vars["fallback_branch"] = "eleven"
build_env_vars["build_repo_branch"] = build_env_vars["fallback_branch"]
else:
sys.exit("Invalid version")
......
......@@ -80,7 +80,7 @@ def init_post_build_env_vars(build_env_vars):
build_repo_url = ("https://github.com/PixelExperience/build"
if not os.getenv("build_repo_url") else
os.getenv("build_repo_url"))
build_repo_branch = (result["manifest_branch"]
build_repo_branch = (result["build_repo_branch"]
if not os.getenv("build_repo_branch") else
os.getenv("build_repo_branch"))
result["tools"] = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment