Merge "Don't include retired projects for codesearch"

This commit is contained in:
Jenkins 2017-09-20 18:31:31 +00:00 committed by Gerrit Code Review
commit 88abd44dd6
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ GIT_PROTOCOL = os.environ.get('GIT_PROTOCOL', 'git://')
def main():
registry = u.ProjectsRegistry(PROJECTS_YAML)
projects = [entry['project'] for entry in registry.configs_list]
projects = [entry['project'] for entry in registry.configs_list
if not entry.get('acl-config', '').endswith('retired.config')]
repos = {}
for project in projects:
# Ignore attic and stackforge, those are repos that are not