]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
scripts: also pass WITH_ to prepare script
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 28 Sep 2023 14:05:15 +0000 (16:05 +0200)
committerJoerg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 28 Sep 2023 14:05:15 +0000 (16:05 +0200)
mkosi/__init__.py

index 615f553e9636c20375f68e2cfb3767fdce21df48..7e1d26b36d576f1824b1796894b04779ffafe580 100644 (file)
@@ -309,6 +309,9 @@ def run_prepare_scripts(state: MkosiState, build: bool) -> None:
         MKOSI_UID=str(state.uid),
         SCRIPT="/work/prepare",
         SRCDIR=str(Path.cwd()),
+        WITH_DOCS=one_zero(state.config.with_docs),
+        WITH_NETWORK=one_zero(state.config.with_network),
+        WITH_TESTS=one_zero(state.config.with_tests),
     )
 
     with contextlib.ExitStack() as stack: