Исправлена проверка обновления

3.6.9.2
parent 2451599fdf
commit 42845ce0b1

@ -1735,6 +1735,14 @@ class Update(MethodsInterface):
new_portage_state_hash = ps.get_state()
ini.setVar('system', {'portage_hash': new_portage_state_hash})
return True
def drop_portage_state_hash(self):
"""
Сбросить состояние
"""
ini = SystemIni(self.clVars)
ini.delVar('system', 'portage_hash')
return True
def update_fastlogin_domain_path(self):
try:

@ -284,6 +284,7 @@ class ClUpdateAction(Action):
Get('cl_update_settings_changes_set') == 'on' or
Get('cl_update_binhost_recheck_set') == 'on' or
Get('cl_update_force_fix_set') == 'on' or
Get('cl_update_available_set') == 'on' or
Get('update.cl_update_package_cache_set') == 'on')
},
{'name': 'update_other',
@ -433,6 +434,10 @@ class ClUpdateAction(Action):
{'name': 'update:save_portage_hash',
'method': 'Update.save_portage_state_hash()',
},
{'name': 'drop_portage_hash',
'method': 'Update.drop_portage_state_hash()',
'depend': Tasks.failed()
},
# сообщение удачного завершения при обновлении ревизии
{'name': 'success_rev',
'message': __("System update finished!"),

@ -1535,6 +1535,15 @@ class VariableClUpdateOutdatedKernelSet(ReadonlyVariable):
ui = UpdateInfo(self.parent)
return "on" if ui.outdated_kernel else "off"
class VariableClUpdateAvailableSet(ReadonlyVariable):
"""
Есть обновления
"""
type = "bool"
def get(self):
ui = UpdateInfo(self.parent)
return "on" if ui.need_update() else "off"
class VariableClUpdateBinhostList(Variable):
"""

Loading…
Cancel
Save