Skip to content

Commit

Permalink
[cli] Show uninstaller information in "info" command
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Jun 17, 2023
1 parent e0428b4 commit 0e35b70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions legendary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,17 @@ def info(self, args):
else:
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 = {''}
for fm in manifest.file_manifest_list.elements:
for tag in fm.install_tags:
Expand Down

0 comments on commit 0e35b70

Please sign in to comment.