mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +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]}')
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue