Skip to content

Commit

Permalink
Install files in deterministic order
Browse files Browse the repository at this point in the history
might not matter much, but it makes for nicer diffs
without variations in install-log.txt
  • Loading branch information
bmwiedemann committed Jan 28, 2024
1 parent 314d9f0 commit d9b6368
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonbuild/minstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ def do_copydir(self, data: InstallData, src_dir: str, dst_dir: str,
else:
exclude_files = exclude_dirs = set()
for root, dirs, files in os.walk(src_dir):
dirs.sort()
files.sort()
assert os.path.isabs(root)
for d in dirs[:]:
abs_src = os.path.join(root, d)
Expand Down

0 comments on commit d9b6368

Please sign in to comment.