Ignore invalid repo names from projects.yaml
It's expected that repo name be in form 'org/module', others are ignored. Change-Id: If2ded095fd44842f63ea3f8310de0fe0e552fb14
This commit is contained in:
@@ -262,7 +262,10 @@ def _read_official_projects_yaml(project_list_uri, release_names):
|
||||
module_groups[group_id]['tag'] = 'program'
|
||||
|
||||
for module in info['projects']:
|
||||
module_name = module['repo'].split('/')[1]
|
||||
repo_split = module['repo'].split('/')
|
||||
if len(repo_split) < 2:
|
||||
continue # valid repo must be in form of 'org/module'
|
||||
module_name = repo_split[1]
|
||||
|
||||
module_groups[group_id]['modules'].append(module_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user