Mesa (master): bin/khronos-update: having a folder in include/ is not a requirement

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 24 11:24:41 UTC 2020


Module: Mesa
Branch: master
Commit: ccb91bc68c5b04d98d27a922a6a164928b789187
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccb91bc68c5b04d98d27a922a6a164928b789187

Author: Eric Engestrom <eric at engestrom.ch>
Date:   Tue Jul 21 02:26:58 2020 +0200

bin/khronos-update: having a folder in include/ is not a requirement

Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6004>

---

 bin/khronos-update.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bin/khronos-update.py b/bin/khronos-update.py
index f95c8950419..68801d507e0 100755
--- a/bin/khronos-update.py
+++ b/bin/khronos-update.py
@@ -197,6 +197,7 @@ if __name__ == '__main__':
             source.sync()
 
         # Make sure all the API files are handled by this script
-        for file in pathlib.Path('include/' + group['inc_folder']).iterdir():
-            if file not in [source.file for source in group['sources']]:
-                error('{} is unknown, please add it to SOURCES'.format(file))
+        if 'inc_folder' in group:
+            for file in pathlib.Path('include/' + group['inc_folder']).iterdir():
+                if file not in [source.file for source in group['sources']]:
+                    error('{} is unknown, please add it to SOURCES'.format(file))



More information about the mesa-commit mailing list