]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't log about copying in the build tree if it is empty 1746/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 17:52:24 +0000 (19:52 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 17:52:24 +0000 (19:52 +0200)
mkosi/__init__.py

index 979db913a0020b087d2ab9ad32437ef1a0f3d029..e3ab836f880143221667f370d43d04ede81c6ce0 100644 (file)
@@ -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…"):