Merge "Sort openstack-infra/-dev entries in layout.yaml"

This commit is contained in:
Jenkins
2014-10-02 16:36:54 +00:00
committed by Gerrit Code Review
2 changed files with 47 additions and 44 deletions

View File

@@ -50,11 +50,13 @@ def check_alphabetical():
"""Check that projects are sorted alphabetical."""
errors = False
# For now, only check sorting of stackforge projects.
# For now, only check sorting of some projects.
last = layout['projects'][0]['name']
for project in layout['projects']:
current = project['name']
if not current.startswith("stackforge/"):
if not last.startswith(("openstack-dev/", "openstack-infra/",
"stackforge/")):
last = current
continue
if normalize(last) > normalize(current):
print("Wrong alphabetical order: %(last)s, %(current)s" %