From 4e539c4fd50ad954b362bcd7a3203d5e17f7749c Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 5 Oct 2021 09:47:59 +0200 Subject: [PATCH] [cli] Print manifest install tags in "info" command --- legendary/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index b0d720b..454251c 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1430,6 +1430,14 @@ class LegendaryCLI: else: manifest_info.append(InfoItem('Prerequisites', 'prerequisites', None, None)) + install_tags = {''} + for fm in manifest.file_manifest_list.elements: + for tag in fm.install_tags: + install_tags.add(tag) + + install_tags = sorted(install_tags) + install_tags_human = ', '.join(i if i else '(empty)' for i in install_tags) + manifest_info.append(InfoItem('Install tags', 'install_tags', install_tags_human, install_tags)) # file # and size manifest_info.append(InfoItem('Files', 'num_files', manifest.file_manifest_list.count, manifest.file_manifest_list.count))