[update] Do not check `_update_spec` when up to date

pull/4242/head
pukkandan 2022-06-30 03:37:48 +05:30
rodzic 28cdb605aa
commit a63b35a60c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7EEE9E1E817D0A39
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -88,6 +88,10 @@ class Updater:
@functools.cached_property
def _tag(self):
latest = self._get_version_info('latest')['tag_name']
if version_tuple(__version__) >= version_tuple(latest):
return 'latest'
identifier = f'{detect_variant()} {system_identifier()}'
for line in self._download('_update_spec', 'latest').decode().splitlines():
if not line.startswith('lock '):