pre update for future migration capabilities

migration_mirror
idziubenko 2 years ago
parent a2349f2273
commit 6952049842

@ -1761,3 +1761,9 @@ class Update(MethodsInterface):
except Exception:
pass
return True
def update_set_current_level(self):
# print("DEBUG")
# self.clVars.Get('update.cl_update_binhost'))
self.printSUCCESS(_("UPDATE LEVEL %s") % self.clVars.Get('update.cl_update_level'))
return True

@ -443,6 +443,11 @@ class ClUpdateAction(Action):
'method': 'Update.drop_portage_state_hash()',
'depend': Tasks.failed()
},
# #TEST
# {'name': 'update:set_current_level',
# 'method': 'Update.update_set_current_level()',
# 'condition': lambda Get: Get('cl_update_sync_only_set') == 'off'
# },
# сообщение удачного завершения при обновлении ревизии
{'name': 'success_rev',
'message': __("System update finished!"),

@ -1845,3 +1845,11 @@ class VariableClUpdatePortageBinhostPath(Variable):
Файл в котором хранится параметр portage PORTAGE_BINHOST
"""
value = "/etc/portage/make.conf/binhost"
class VariableClUpdateLevel(Variable):
"""
Текущий уровень обновления
Используется для выбора зеркала
"""
value = "0"
Loading…
Cancel
Save