[cli] Show notice on non-Windows about update delays

This commit is contained in:
derrod 2021-09-03 20:14:00 +02:00
parent d21e002272
commit d82870a5d3

View file

@ -120,7 +120,7 @@ class LegendaryCLI:
# Force an update check and notice in case there are API changes
self.core.check_for_updates(force=True)
self.core.force_show_update = True
exchange_token = ''
if not args.auth_code and not args.session_id:
# unfortunately the captcha stuff makes a complete CLI login flow kinda impossible right now...
@ -1443,6 +1443,9 @@ def main():
print(f'- Release summary:\n{update_info["summary"]}\n- Release URL: {update_info["gh_url"]}')
if update_info['critical']:
print('! This update is recommended as it fixes major issues.')
if os.name != 'nt':
print('If you installed legendary via a package manager it may '
'take some time for the update to become available.')
cli.core.exit()
ql.stop()