]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Improve formatting of needs_build() a little
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 20 Nov 2024 13:28:45 +0000 (14:28 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 20 Nov 2024 13:50:13 +0000 (14:50 +0100)
mkosi/__init__.py

index 2e482d9d5aaa8f83705f7e80d1a054b516fb9ddb..808903200692426d7acdfa76f4e3ecfb950fd830 100644 (file)
@@ -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()
     )