]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Require that default tools tree exists when mkosi -t none is invoked 3205/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 18 Nov 2024 20:16:40 +0000 (21:16 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 18 Nov 2024 20:16:40 +0000 (21:16 +0100)
Let's insist on the default tools tree already existing when invoking
mkosi -t none without --force.

mkosi/__init__.py

index 55ace22d48f5268b063aec646e44ad527cadf76a..7e71fab5b117126d73383f6395c16d4c55f71306 100644 (file)
@@ -4651,7 +4651,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None:
             not (tools.output_dir_or_cwd() / tools.output).exists()
             or (tools.incremental and not have_cache(tools))
         )
-        and args.verb != Verb.build
+        and (args.verb != Verb.build or last.output_format == OutputFormat.none)
         and not args.force
     ):
         die(