From d88111b51346d53c32d09e20fe18d72587b89738 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 18 Nov 2024 21:16:40 +0100 Subject: [PATCH] Require that default tools tree exists when mkosi -t none is invoked Let's insist on the default tools tree already existing when invoking mkosi -t none without --force. --- mkosi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 55ace22d4..7e71fab5b 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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( -- 2.47.2