Skip to content

Commit 0e35b70

Browse files
committed
[cli] Show uninstaller information in "info" command
1 parent e0428b4 commit 0e35b70

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

legendary/cli.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,17 @@ def info(self, args):
17801780
else:
17811781
manifest_info.append(InfoItem('Prerequisites', 'prerequisites', None, None))
17821782

1783+
if manifest.meta.uninstall_action_path:
1784+
human_list = [
1785+
f'Uninstaller path: {manifest.meta.uninstall_action_path}',
1786+
f'Uninstaller args: {manifest.meta.uninstall_action_args or "(None)"}',
1787+
]
1788+
manifest_info.append(InfoItem('Uninstaller', 'uninstaller', human_list,
1789+
dict(path=manifest.meta.uninstall_action_path,
1790+
args=manifest.meta.uninstall_action_args)))
1791+
else:
1792+
manifest_info.append(InfoItem('Uninstaller', 'uninstaller', None, None))
1793+
17831794
install_tags = {''}
17841795
for fm in manifest.file_manifest_list.elements:
17851796
for tag in fm.install_tags:

0 commit comments

Comments
 (0)