From: Daan De Meyer Date: Tue, 28 Nov 2023 16:35:03 +0000 (+0100) Subject: Set atime and mtime of scripts to zero X-Git-Tag: v20~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=154acfa0d45fba9ad46dbf04136001355d14c27a;p=thirdparty%2Fmkosi.git Set atime and mtime of scripts to zero Otherwise, stuff like meson reconfigure will rerun every time because we write the script again every time we run the build script. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 1d1f9f9cb..909657b25 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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)