Commit 01bdd551 authored by Adrian DC's avatar Adrian DC Committed by Abhisek Devkota
Browse files

roomservice: Follow fetched android_device_ projects

 * In a situation where the Android tree is already
    fetched and entirely set for a device tree,
    all additions to cm.dependencies in a common
    project were ignored due to being already fetched

 * Add a new array of projects to verify but not
    necessarily fetch, and fill it upon fetch request
    or if the project starts with "android_device_",
    to let the iterations follow the common trees

Change-Id: I9eea0ab9c46a4bed8366baa37a4e7e8696481504
Signed-off-by: default avatarAdrian DC <>
parent 840e7814
......@@ -201,9 +201,10 @@ def add_to_manifest(repositories, fallback_branch = None):
def fetch_dependencies(repo_path, fallback_branch = None):
print('Looking for dependencies')
print('Looking for dependencies in %s' % repo_path)
dependencies_path = repo_path + '/cm.dependencies'
syncable_repos = []
verify_repos = []
if os.path.exists(dependencies_path):
dependencies_file = open(dependencies_path, 'r')
......@@ -214,6 +215,9 @@ def fetch_dependencies(repo_path, fallback_branch = None):
if not is_in_manifest(dependency['target_path']):
elif"android_device_.*_.*$", dependency['repository']):
......@@ -227,7 +231,7 @@ def fetch_dependencies(repo_path, fallback_branch = None):
print('Syncing dependencies')
os.system('repo sync --force-sync %s' % ' '.join(syncable_repos))
for deprepo in syncable_repos:
for deprepo in verify_repos:
def has_branch(branches, revision):
Supports Markdown
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