From: Daan De Meyer Date: Fri, 12 May 2023 12:59:16 +0000 (+0200) Subject: Do not check inputs up front X-Git-Tag: v15~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21aeee1581ab472b306e3a8a3bc8484df67ca87a;p=thirdparty%2Fmkosi.git Do not check inputs up front They could be generated by the previous preset --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 1660c75aa..867dea78e 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2023,8 +2023,6 @@ def run_verb(args: MkosiArgs, presets: Sequence[MkosiConfig]) -> None: die(f"Sorry, can't {opname} a compressed image.") for config in presets: - check_inputs(config) - if args.verb == Verb.build and not args.force: check_outputs(config) @@ -2044,6 +2042,8 @@ def run_verb(args: MkosiArgs, presets: Sequence[MkosiConfig]) -> None: build = False for config in presets: + check_inputs(config) + if not needs_build(args, config): continue