From: Daan De Meyer Date: Wed, 26 Feb 2025 11:31:26 +0000 (+0100) Subject: Remove outputs as well if we don't have a cached image X-Git-Tag: v26~348^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1362bb2b91e2bc74bb299965dbc7f779757ac06d;p=thirdparty%2Fmkosi.git Remove outputs as well if we don't have a cached image --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 71c6d3276..db5713771 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4681,7 +4681,7 @@ def run_clean(args: Args, config: Config) -> None: remove_image_cache = args.force > 0 remove_package_cache = args.force > 1 else: - remove_outputs = config.output_format != OutputFormat.none and args.force > 0 + remove_outputs = args.force > 0 or (config.is_incremental() and not have_cache(config)) remove_build_cache = args.force > 1 or args.wipe_build_dir remove_image_cache = args.force > 1 or not have_cache(config) remove_package_cache = args.force > 2