[cli] Show uninstaller information in "info" command

This commit is contained in:
derrod 2023-06-18 00:38:38 +02:00
parent e0428b497e
commit 0e35b70941

View file

@ -1780,6 +1780,17 @@ class LegendaryCLI:
else: else:
manifest_info.append(InfoItem('Prerequisites', 'prerequisites', None, None)) manifest_info.append(InfoItem('Prerequisites', 'prerequisites', None, None))
if manifest.meta.uninstall_action_path:
human_list = [
f'Uninstaller path: {manifest.meta.uninstall_action_path}',
f'Uninstaller args: {manifest.meta.uninstall_action_args or "(None)"}',
]
manifest_info.append(InfoItem('Uninstaller', 'uninstaller', human_list,
dict(path=manifest.meta.uninstall_action_path,
args=manifest.meta.uninstall_action_args)))
else:
manifest_info.append(InfoItem('Uninstaller', 'uninstaller', None, None))
install_tags = {''} install_tags = {''}
for fm in manifest.file_manifest_list.elements: for fm in manifest.file_manifest_list.elements:
for tag in fm.install_tags: for tag in fm.install_tags: