From: Daan De Meyer Date: Mon, 18 Nov 2024 20:16:40 +0000 (+0100) Subject: Require that default tools tree exists when mkosi -t none is invoked X-Git-Tag: v25~163^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3205%2Fhead;p=thirdparty%2Fmkosi.git 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. --- 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(