From 71aa9e00aaf54c6648bd061319d7792100b0b994 Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.com>
Date: Sat, 26 Dec 2015 10:04:52 +0100
Subject: [PATCH] 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
---
 tools/layout-checks.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/layout-checks.py b/tools/layout-checks.py
index fe13b59a4b..5a333c360f 100755
--- a/tools/layout-checks.py
+++ b/tools/layout-checks.py
@@ -67,8 +67,7 @@ def check_projects_sorted():
             firstEntry = False
         if line.startswith('  - name: ') and not firstEntry:
             current = line[10:].strip()
-            if (normalize(last) > normalize(current) and
-                last != 'z/tempest'):
+            if (normalize(last) > normalize(current)):
                 print("  Wrong alphabetical order: %(last)s, %(current)s" %
                       {"last": last, "current": current})
                 errors = True