Merge "Make retired acl check less greedy"

This commit is contained in:
Jenkins 2017-09-20 18:56:15 +00:00 committed by Gerrit Code Review
commit d7e5278ae9
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ def main():
'DEFAULT_ORG is set.' % project)
(org, name) = (DEFAULT_ORG, project)
description = entry.get('description', name)
retired = entry.get('acl-config', '').endswith('retired.config')
retired = entry.get('acl-config', '').endswith('/retired.config')
assert project not in names
names.add(project)
gitorgs.setdefault(org, []).append((name, description, retired))

View File

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