summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-01-13 07:22:32 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2021-01-13 15:57:06 +0000
commitccb15bc0e988f4e90b67606eaad9443c7ccac918 (patch)
tree412e0c7aabbd87dc00a9a1f3ab11229ab66f761e /tools
parentadfcf77109a2c73d88295a0fc60555b34da3eebe (diff)
downloadmeson-ccb15bc0e988f4e90b67606eaad9443c7ccac918.tar.gz
gen_data.py: even more sorting
glob.glob() is not sorted, despite using shell-style wildcards, and the documentation does not mention this: https://bugs.python.org/issue21748 Recently, it does start mentioning "Whether or not the results are sorted depends on the file system." which does not really get to the heart of the matter... This is causing fuzz too.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen_data.py b/tools/gen_data.py
index 4c1682302..9affc660f 100755
--- a/tools/gen_data.py
+++ b/tools/gen_data.py
@@ -43,7 +43,7 @@ def main() -> int:
mesonbuild_dir = root_dir / 'mesonbuild'
out_file = mesonbuild_dir / 'mesondata.py'
- data_dirs = mesonbuild_dir.glob('**/data')
+ data_dirs = sorted(mesonbuild_dir.glob('**/data'))
data_files: T.List[DataFile] = []