Skip to content

Commit

Permalink
[cli] Print manifest install tags in "info" command
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Oct 5, 2021
1 parent a029fc6 commit 4e539c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions legendary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,14 @@ def info(self, args):
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))
Expand Down

0 comments on commit 4e539c4

Please sign in to comment.