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:
Ilya Shakhat
2015-04-23 09:37:58 +03:00
parent c019b93f88
commit 346c7335cb

View File

@@ -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)