From 0e35b70941fa4c6eef5e44f5792b04ff49497264 Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 18 Jun 2023 00:38:38 +0200 Subject: [PATCH] [cli] Show uninstaller information in "info" command --- legendary/cli.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index ccbf7d2..7dc9c83 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1780,6 +1780,17 @@ class LegendaryCLI: 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: