Don't include retired projects for codesearch

They just take up extra space.

Change-Id: I105519f577cefac207743bcbc9bfc096798e4dff
This commit is contained in:
Monty Taylor 2017-08-29 14:39:16 -05:00
parent 0db52843ed
commit 861bff7163
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
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