From: Daan De Meyer Date: Wed, 31 Jan 2024 11:40:32 +0000 (+0100) Subject: Fix mkosi clean X-Git-Tag: v21~77^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57696454054e209dd11efde0b496e5e48e3af94b;p=thirdparty%2Fmkosi.git Fix mkosi clean --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index ab8c33499..0c1acc1b9 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -3475,6 +3475,7 @@ def check_workspace_directory(config: Config) -> None: def needs_clean(args: Args, config: Config) -> bool: return ( + args.verb == Verb.clean or args.force > 0 or not (config.output_dir_or_cwd() / config.output_with_compression).exists() or # When the output is a directory, its name is the same as the symlink we create that points to the actual