[cli] Show both current and new version in Overlay update notice

This commit is contained in:
derrod 2021-12-28 18:17:13 +01:00
parent b5120fa99d
commit e5ba44ecfa

View file

@ -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()