]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Set atime and mtime of scripts to zero
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 28 Nov 2023 16:35:03 +0000 (17:35 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 28 Nov 2023 16:50:07 +0000 (17:50 +0100)
Otherwise, stuff like meson reconfigure will rerun every time because
we write the script again every time we run the build script.

mkosi/__init__.py

index 1d1f9f9cb882acd3ebdb55dad284c30f9a37e088..909657b25c536feecdfb8058bd0a702570f36216 100644 (file)
@@ -356,6 +356,7 @@ def finalize_scripts(scripts: Mapping[str, Sequence[PathString]] = {}) -> Iterat
             )
 
             make_executable(Path(d) / name)
+            os.utime(Path(d) / name, (0, 0))
 
         yield Path(d)