]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't rebuild local package repository if OutputFormat == none 2559/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Mar 2024 11:44:12 +0000 (12:44 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Mar 2024 11:44:12 +0000 (12:44 +0100)
We're not going to do anything anymore if the output format == none
so don't rebuild the local package repository.

mkosi/__init__.py

index 39b749293de90771ca2c35b344210ebd85a10d04..b2c66645af787ba19bc82f24edd2e478769c6f15 100644 (file)
@@ -682,7 +682,7 @@ def run_build_scripts(context: Context) -> None:
                     ) + (chroot if script.suffix == ".chroot" else []),
                 )
 
-    if context.want_local_repo():
+    if context.want_local_repo() and context.config.output_format != OutputFormat.none:
         with complete_step("Rebuilding local package repository"):
             context.config.distribution.createrepo(context)