From: Daan De Meyer Date: Tue, 17 Dec 2024 11:36:59 +0000 (+0100) Subject: Improve summary output a bit X-Git-Tag: v25~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1b72a7b6b5acef847f526d66567e22b6cb2e7c;p=thirdparty%2Fmkosi.git Improve summary output a bit Let's skip a few sections for subimages as these will always be identical to the main image anyways. --- diff --git a/mkosi/config.py b/mkosi/config.py index fc4e92e7d..39fb5f1bf 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -4734,6 +4734,10 @@ def summary(config: Config) -> str: summary = f"""\ {bold(f"IMAGE: {config.image or 'default'}")} +""" + + if not config.image: + summary += f"""\ {bold("CONFIG")}: Profiles: {line_join_list(config.profiles)} @@ -4751,6 +4755,9 @@ def summary(config: Config) -> str: Repo Signature/Key check: {yes_no(config.repository_key_check)} Fetch Repository Keys: {yes_no(config.repository_key_fetch)} Repositories: {line_join_list(config.repositories)} +""" + + summary += f"""\ {bold("OUTPUT")}: Output Format: {config.output_format} @@ -4861,7 +4868,8 @@ def summary(config: Config) -> str: GPG Key: ({"default" if config.key is None else config.key}) """ - summary += f"""\ + if not config.image: + summary += f"""\ {bold("BUILD CONFIGURATION")}: Tools Tree: {config.tools_tree}