Fix check for alphabetical sorting in layout.yaml

Previously z/tempest was in the middle of the file and needed special
treatment for sorting. Nowadays it's at the end and thus no special
treatment is needed, remove it.

With this change additions to the end of the file will now be flagged.

Change-Id: I337017b4a17e8aa086d658649613ddc61212adc8
This commit is contained in:
Andreas Jaeger 2015-12-26 10:04:52 +01:00 committed by Andreas Jaeger
parent 0ebe0a2f04
commit 71aa9e00aa

@ -67,8 +67,7 @@ def check_projects_sorted():
firstEntry = False firstEntry = False
if line.startswith(' - name: ') and not firstEntry: if line.startswith(' - name: ') and not firstEntry:
current = line[10:].strip() current = line[10:].strip()
if (normalize(last) > normalize(current) and if (normalize(last) > normalize(current)):
last != 'z/tempest'):
print(" Wrong alphabetical order: %(last)s, %(current)s" % print(" Wrong alphabetical order: %(last)s, %(current)s" %
{"last": last, "current": current}) {"last": last, "current": current})
errors = True errors = True