Let's skip a few sections for subimages as these will always be identical
to the main image anyways.
summary = f"""\
{bold(f"IMAGE: {config.image or 'default'}")}
+"""
+
+ if not config.image:
+ summary += f"""\
{bold("CONFIG")}:
Profiles: {line_join_list(config.profiles)}
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}
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}