mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Show both current and new version in Overlay update notice
This commit is contained in:
parent
b5120fa99d
commit
e5ba44ecfa
|
@ -2475,8 +2475,9 @@ def main():
|
||||||
print(f'\n- Download URL: {update_info["downloads"][dl_platform]}')
|
print(f'\n- Download URL: {update_info["downloads"][dl_platform]}')
|
||||||
|
|
||||||
if not disable_update_message and cli.core.overlay_update_available:
|
if not disable_update_message and cli.core.overlay_update_available:
|
||||||
version_info = cli.core.lgd.get_cached_overlay_version()
|
old_version = cli.core.lgd.get_overlay_install_info().version
|
||||||
print(f'\nEOS Overlay update available ({version_info["data"]["buildVersion"]}).')
|
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.')
|
print('Run "legendary eos-overlay update" to update to the latest version.')
|
||||||
|
|
||||||
cli.core.exit()
|
cli.core.exit()
|
||||||
|
|
Loading…
Reference in a new issue