From: Daan De Meyer Date: Sun, 6 Aug 2023 17:52:24 +0000 (+0200) Subject: Don't log about copying in the build tree if it is empty X-Git-Tag: v15~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1746%2Fhead;p=thirdparty%2Fmkosi.git Don't log about copying in the build tree if it is empty --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 979db913a..e3ab836f8 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -559,7 +559,7 @@ def install_extra_trees(state: MkosiState) -> None: def install_build_dest(state: MkosiState) -> None: - if state.config.build_script is None: + if not any(state.install_dir.iterdir()): return with complete_step("Copying in build tree…"):