]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add debug logging for version reported by systemd tools
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Mon, 11 Aug 2025 13:13:47 +0000 (15:13 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Mon, 11 Aug 2025 14:05:56 +0000 (16:05 +0200)
mkosi/config.py

index 537d82489961705d5e4fbc84fb0edd6957283220..4e0465a8cb9375cb15217a4246a129d67cb4e7a2 100644 (file)
@@ -5873,7 +5873,7 @@ def want_selinux_relabel(
 
 
 def systemd_tool_version(*tool: PathString, sandbox: SandboxProtocol = nosandbox) -> GenericVersion:
-    return GenericVersion(
+    version = GenericVersion(
         run(
             [*tool, "--version"],
             stdout=subprocess.PIPE,
@@ -5883,3 +5883,7 @@ def systemd_tool_version(*tool: PathString, sandbox: SandboxProtocol = nosandbox
         .strip("()")
         .removeprefix("v")
     )
+
+    logging.debug(f"Version reported by {tool[-1]} is {version}")
+
+    return version