]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop tools tree from cache manifest
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 2 Nov 2024 19:39:53 +0000 (20:39 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 3 Nov 2024 09:41:27 +0000 (10:41 +0100)
The existing check is too primitive and actually causes issues when
using the new mkosi sandbox verb we'll add in the next commit so let's
drop it.

mkosi/config.py

index 68f7bfa32cae8a180593d15b8838f935bd355491..7788b309e948f338b5b874380b7ee6c1c4cdf732 100644 (file)
@@ -1945,12 +1945,6 @@ class Config:
             "prepare_scripts": sorted(
                 base64.b64encode(script.read_bytes()).decode() for script in self.prepare_scripts
             ),
-            # Statting the root directory of the tools tree isn't fool proof but should be good enough.
-            "tools_tree": (
-                [self.tools_tree, self.tools_tree.stat().st_mtime_ns]
-                if self.tools_tree and self.tools_tree.exists()
-                else []
-            ),
         }
 
     def to_dict(self) -> dict[str, Any]: