From e5ba44ecfaa7f58b73a3cc9e353ba9237770ff0d Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Dec 2021 18:17:13 +0100 Subject: [PATCH] [cli] Show both current and new version in Overlay update notice --- legendary/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index 51c136a..0822619 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -2475,8 +2475,9 @@ def main(): print(f'\n- Download URL: {update_info["downloads"][dl_platform]}') if not disable_update_message and cli.core.overlay_update_available: - version_info = cli.core.lgd.get_cached_overlay_version() - print(f'\nEOS Overlay update available ({version_info["data"]["buildVersion"]}).') + old_version = cli.core.lgd.get_overlay_install_info().version + new_version = cli.core.lgd.get_cached_overlay_version()["data"]["buildVersion"] + print(f'\nEOS Overlay update available: {new_version} (Current: {old_version}).') print('Run "legendary eos-overlay update" to update to the latest version.') cli.core.exit()