]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't run run_clean() in a forked child anymore
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Aug 2024 11:43:33 +0000 (13:43 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Aug 2024 12:51:55 +0000 (14:51 +0200)
No need anymore so let's not fork unnecessarily.

mkosi/__init__.py

index 5907fb60c48f30b0963ad751780fc8fc7cc62342..68917f5d2f346534062c465ca9f821e7ac9ce222 100644 (file)
@@ -4756,7 +4756,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None:
             ((args.verb == Verb.build or args.force > 0) and not have_cache(tools)) or
             needs_clean(args, tools, force=2)
         ):
-            fork_and_wait(run_clean, args, tools, resources=resources)
+            run_clean(args, tools, resources=resources)
     else:
         tools = None
 
@@ -4764,7 +4764,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None:
     # image build could end up deleting the output generated by an earlier image build.
     for config in images:
         if needs_clean(args, config) or args.wipe_build_dir:
-            fork_and_wait(run_clean, args, config, resources=resources)
+            run_clean(args, config, resources=resources)
 
     if args.verb == Verb.clean:
         return