Skip to content

Commit

Permalink
Improve summary output a bit
Browse files Browse the repository at this point in the history
Let's skip a few sections for subimages as these will always be identical
to the main image anyways.
  • Loading branch information
DaanDeMeyer authored and behrmann committed Dec 18, 2024
1 parent 62efae4 commit da1b72a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand All @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit da1b72a

Please sign in to comment.