Loading build/tools/roomservice.py +7 −1 Original line number Diff line number Diff line Loading @@ -287,7 +287,7 @@ def get_default_or_fallback_revision(repo_name): for branch in [branch['name'] for branch in result]: print(branch) print("Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.") sys.exit() return "" if depsonly: repo_path = get_from_manifest(device) Loading @@ -306,6 +306,12 @@ else: manufacturer = repo_name.replace("android_device_", "").replace("_" + device, "") repo_path = "device/%s/%s" % (manufacturer, device) revision = get_default_or_fallback_revision(repo_name) if revision == "": # Some devices have the same codename but shipped a long time ago and may not have # a current branch set up. # Continue looking up all repositories until a match is found or no repos are left # to check. continue device_repository = {'repository':repo_name,'target_path':repo_path,'branch':revision} add_to_manifest([device_repository]) Loading Loading
build/tools/roomservice.py +7 −1 Original line number Diff line number Diff line Loading @@ -287,7 +287,7 @@ def get_default_or_fallback_revision(repo_name): for branch in [branch['name'] for branch in result]: print(branch) print("Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.") sys.exit() return "" if depsonly: repo_path = get_from_manifest(device) Loading @@ -306,6 +306,12 @@ else: manufacturer = repo_name.replace("android_device_", "").replace("_" + device, "") repo_path = "device/%s/%s" % (manufacturer, device) revision = get_default_or_fallback_revision(repo_name) if revision == "": # Some devices have the same codename but shipped a long time ago and may not have # a current branch set up. # Continue looking up all repositories until a match is found or no repos are left # to check. continue device_repository = {'repository':repo_name,'target_path':repo_path,'branch':revision} add_to_manifest([device_repository]) Loading