aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-12-31 00:36:18 (GMT)
committerSimon Shields <keepcalm444@gmail.com>2016-12-31 00:38:56 (GMT)
commit3befa38fc9144c5f96dda060c8563930638c6f9a (patch)
treee873ec3c05ae2d22f7583bb043e3b2ab01e8d1eb
parentfb054deebbf7247f4009443712c3b7ddb87b9a1b (diff)
downloadandroid_build-cm-12.1.zip
android_build-cm-12.1.tar.gz
android_build-cm-12.1.tar.bz2
roomservice: minimal changes to build from LineageOS reposcm-12.1refs/changes/61/154361/1
Change-Id: I7f517371c54db92af7f3bbc462354bed758bb217
-rwxr-xr-xtools/roomservice.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/roomservice.py b/tools/roomservice.py
index 01a7154..e8c9112 100755
--- a/tools/roomservice.py
+++ b/tools/roomservice.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# Copyright (C) 2012-2013, The CyanogenMod Project
+# (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -51,7 +52,7 @@ except:
device = product
if not depsonly:
- print("Device %s not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod)." % device)
+ print("Device %s not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS)." % device)
repositories = []
@@ -70,7 +71,7 @@ def add_auth(githubreq):
githubreq.add_header("Authorization","Basic %s" % githubauth)
if not depsonly:
- githubreq = urllib.request.Request("https://api.github.com/search/repositories?q=%s+user:CyanogenMod+in:name+fork:true" % device)
+ githubreq = urllib.request.Request("https://api.github.com/search/repositories?q=%s+user:LineageOS+in:name+fork:true" % device)
add_auth(githubreq)
try:
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
@@ -173,12 +174,12 @@ def add_to_manifest(repositories, fallback_branch = None):
repo_name = repository['repository']
repo_target = repository['target_path']
if exists_in_tree(lm, repo_name):
- print('CyanogenMod/%s already exists' % (repo_name))
+ print('LineageOS/%s already exists' % (repo_name))
continue
- print('Adding dependency: CyanogenMod/%s -> %s' % (repo_name, repo_target))
+ print('Adding dependency: LineageOS/%s -> %s' % (repo_name, repo_target))
project = ElementTree.Element("project", attrib = { "path": repo_target,
- "remote": "github", "name": "CyanogenMod/%s" % repo_name })
+ "remote": "github", "name": "LineageOS/%s" % repo_name })
if 'branch' in repository:
project.set('revision',repository['branch'])
@@ -209,7 +210,7 @@ def fetch_dependencies(repo_path, fallback_branch = None):
fetch_list = []
for dependency in dependencies:
- if not is_in_manifest("CyanogenMod/%s" % dependency['repository']):
+ if not is_in_manifest("LineageOS/%s" % dependency['repository']):
fetch_list.append(dependency)
syncable_repos.append(dependency['target_path'])
@@ -292,4 +293,4 @@ else:
print("Done")
sys.exit()
-print("Repository for %s not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml." % device)
+print("Repository for %s not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml." % device)