]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Return early if verb is "clean"
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 21 May 2023 15:06:35 +0000 (17:06 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 21 May 2023 15:06:35 +0000 (17:06 +0200)
Otherwise we start checking the inputs of the presets which we don't
wanna do if we're just cleaning outputs

mkosi/__init__.py

index 6e9b3d3a2edc8388864443f16045d22623c4b95e..d5bf773e3fad44b74099657fb85c406cd2d5804e 100644 (file)
@@ -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: