From 9d49a68b38d4490270484d368fa62905defed7dc Mon Sep 17 00:00:00 2001 From: idziubenko Date: Fri, 29 Oct 2021 17:35:38 +0300 Subject: [PATCH] added output --- pym/update/update.py | 5 +++++ pym/update/variables/update.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/pym/update/update.py b/pym/update/update.py index 3cf27ff..0dee22b 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -1713,6 +1713,8 @@ class Update(MethodsInterface): return True def set_migration_host(self): + #TODO translate + self.startTask(_("Setting up migration host")) retval = [] dv = self.clVars last_ts = dv.Get('cl_update_last_timestamp') @@ -1824,10 +1826,13 @@ class Update(MethodsInterface): return True def update_increment_current_level(self): + #TODO add translation + self.startTask(_("Increasing update level")) current_level = int(self.clVars.Get('cl_update_level')) self.clVars.Write('cl_update_level', str(current_level + 1), location="system") self.clVars.Set("update.cl_update_use_migration_host", Variable.Off) self.delete_binhost() + self.endTask() return True \ No newline at end of file diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 4da069b..2613211 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -1858,6 +1858,7 @@ class VariableClUpdateLevel(Variable): Используется для выбора зеркала """ type = "int" + value = "0" class VariableClUpdateUseMigrationHost(Variable): """ @@ -1870,6 +1871,7 @@ class VariableClCheckUpdateLevel(Variable): """ Проверять уровень обновления при соединении с binhost + NOT IMPLEMENTED YET """ type = "bool" value = "on" \ No newline at end of file