]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python/mkvenv: create timestamp file for each group "ensured"
authorJohn Snow <jsnow@redhat.com>
Wed, 18 Feb 2026 21:33:57 +0000 (16:33 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 23 Feb 2026 18:24:42 +0000 (13:24 -0500)
Each group ensured by the mkvenv script will create an empty timestamp
file named {groupname}.group which can be used to conditionally trigger
dependency installation from various scripts and build machinery.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260218213416.674483-3-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
python/scripts/mkvenv.py

index 5cba5770d22ee3d5c1e6faf5ed342a92e6e4f6b4..b4662d33e6e8312d93ec70b841e7d1294763661f 100644 (file)
@@ -838,6 +838,12 @@ def ensure_group(
             raise Ouch(result[0])
         raise SystemExit(f"\n{result[0]}\n\n")
 
+    if inside_a_venv():
+        for group in groups:
+            path = Path(sys.prefix).joinpath(f"{group}.group")
+            with open(path, "w", encoding="UTF8"):
+                pass
+
 
 def post_venv_setup() -> None:
     """