roomservice: Adapt to Bliss device repo names
Change-Id: I4aa93d83c066e7323b6bd31163b63f4230afc3c8
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/build/tools/roomservice.py b/build/tools/roomservice.py
index 1be9c79..7a361fd 100755
--- a/build/tools/roomservice.py
+++ b/build/tools/roomservice.py
@@ -288,13 +288,13 @@
for repository in repositories:
repo_name = repository['name']
- if not (repo_name.startswith("device") and
+ if not (repo_name.startswith("android_device") and
repo_name.endswith("_" + device)):
continue
print("Found repository: %s" % repository['name'])
fallback_branch = detect_revision(repository)
- manufacturer = repo_name[7:-(len(device)+1)]
+ manufacturer = repo_name[15:-(len(device)+1)]
repo_path = "device/%s/%s" % (manufacturer, device)
adding = [{'repository': repo_name, 'target_path': repo_path}]