From: Daan De Meyer Date: Sun, 21 May 2023 15:06:35 +0000 (+0200) Subject: Return early if verb is "clean" X-Git-Tag: v15~153^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04807649ae8b2a0ccc53445926f99498e6e10c83;p=thirdparty%2Fmkosi.git Return early if verb is "clean" Otherwise we start checking the inputs of the presets which we don't wanna do if we're just cleaning outputs --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 6e9b3d3a2..d5bf773e3 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2049,6 +2049,9 @@ def run_verb(args: MkosiArgs, presets: Sequence[MkosiConfig]) -> None: fork_and_wait(target) + if args.verb == Verb.clean: + return + build = False for config in presets: