diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-01-12 19:15:26 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-01-12 19:19:00 -0500 |
commit | 0063bd35d79e952aa964d7338869d55b91ea4a40 (patch) | |
tree | 66cefa80fe29baf0ce9e01c64a8437fb2f7a3730 /tools | |
parent | e6a167ce092a36017a4ff56b3fb045be62377a25 (diff) | |
download | meson-0063bd35d79e952aa964d7338869d55b91ea4a40.zip meson-0063bd35d79e952aa964d7338869d55b91ea4a40.tar.gz meson-0063bd35d79e952aa964d7338869d55b91ea4a40.tar.bz2 |
gen_data.py: sort files when generating mesondata
The current way this works is chaos since the tool might return files in
any order and thus shuffle around the order of embedded files. This
results in big diffs that cannot be easily reviewed.
Also regenerate the data according to the, going forward, canonical
ordering algorithm.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gen_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen_data.py b/tools/gen_data.py index 2b84e9c..4c16823 100755 --- a/tools/gen_data.py +++ b/tools/gen_data.py @@ -48,7 +48,7 @@ def main() -> int: data_files: T.List[DataFile] = [] for d in data_dirs: - for p in d.iterdir(): + for p in sorted(d.iterdir()): data_files += [DataFile(p, mesonbuild_dir)] print(f'Found {len(data_files)} data files') |