]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Skip tools checks for build step if output format is none
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 29 Nov 2024 08:37:45 +0000 (09:37 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 29 Nov 2024 08:37:45 +0000 (09:37 +0100)
If we're only running things up until the build scripts we're not
going to be running any of the tools we check for so skip the checks
in that case.

mkosi/__init__.py

index 4cc627cc56e015697ac857d6bda5707ae1716cc3..198131616768a132d3bc50935c01413a2dc3a3e4 100644 (file)
@@ -2576,6 +2576,9 @@ def check_ukify(
 
 def check_tools(config: Config, verb: Verb) -> None:
     if verb == Verb.build:
+        if config.output_format == OutputFormat.none:
+            return
+
         if config.bootable != ConfigFeature.disabled:
             check_tool(config, "depmod", reason="generate kernel module dependencies")