mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Print manifest install tags in "info" command
This commit is contained in:
parent
a029fc6fdb
commit
4e539c4fd5
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue