From: Daan De Meyer Date: Wed, 20 Nov 2024 13:28:45 +0000 (+0100) Subject: Improve formatting of needs_build() a little X-Git-Tag: v25~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4447b04f9e02b52d24a4b0bbbda3cf94edf8f26e;p=thirdparty%2Fmkosi.git Improve formatting of needs_build() a little --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 2e482d9d5..808903200 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4300,11 +4300,10 @@ def needs_build(args: Args, config: Config, force: int = 1) -> bool: return ( args.force >= force 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 output when not building a directory. So if the full output path exists, we - # have to check that it's not a symlink as well. - (config.output_dir_or_cwd() / config.output_with_compression).is_symlink() + # When the output is a directory, its name is the same as the symlink we create that points to the + # actual output when not building a directory. So if the full output path exists, we have to check + # that it's not a symlink as well. + or (config.output_dir_or_cwd() / config.output_with_compression).is_symlink() )