Make retired acl check less greedy

Change-Id: I03ef4483f14b41e52b07e40cabd573a3b4a3eef5
This commit is contained in:
Monty Taylor 2017-09-20 13:14:02 -05:00
parent 861bff7163
commit 4b86a52f0d
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
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