diff --git a/pym/update/update.py b/pym/update/update.py index 59f8127..e009328 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -387,6 +387,9 @@ class Update(MethodsInterface): check_status = dv.GetBool('update.cl_update_check_rep_set') git = self.getGit() working_host = '' + # проверка необходимости синхронизации других оверлеев + if self.clVars.Get("cl_update_inner_other_set"): + self.clVars.Write("cl_update_other_set", self.clVars.Get("cl_update_inner_other_set"), header="update") if 'cl_update_rep_list' in dv.allVars and dv.Get('cl_update_rep_list'): # Берем первый доступный хостинг из списка for host_urls, host in dv.Get('cl_update_inner_rep_list'): @@ -1574,10 +1577,6 @@ class Update(MethodsInterface): def create_binhost_data(self): dv = self.clVars last_ts = dv.Get('cl_update_last_timestamp') - a = dv.Get('cl_update_binhost') - c = self.clVars.getIniVar('cl_update_binhost') - d = dv.Get('cl_update_binhost_choice') - b = dv.GetBool('cl_update_binhost_set') if (not dv.Get('cl_update_binhost_choice') and not dv.GetBool('cl_update_binhost_set')) \ or dv.Get('cl_update_binhost_choice') == 'auto': if dv.Get('cl_update_binhost_stable_opt_set'): @@ -1591,7 +1590,6 @@ class Update(MethodsInterface): dv.Write('cl_update_binhost_set', "on") binhost_list = [dv.Get('cl_update_binhost')] - #dv.Write('cl_update_binhost_set', "off") self.binhosts_data = Binhosts( # значение малозначимо, поэтому берётся из собирающей системы dv.GetInteger('cl_update_binhost_timeout'), diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 624f139..30bd823 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -621,13 +621,28 @@ class VariableClUpdateOtherSet(Variable): Обновить остальные оверлеи """ type = "bool" - value = "off" - opt = ["-o", "--update-other"] + value = "on" + def init(self): self.help = _("update other overlays") self.label = _("Update other overlays") + def get(self): + if self.Get('cl_update_inner_other_set'): + return self.Get('cl_update_inner_other_set') + return self.value + + +class VariableClUpdateInnerOtherSet(Variable): + type = "string" + value = '' + opt = ["-o", "--update-other"] + + def get(self): + if self.value in ["on", "off"]: + return True + return False class VariableClUpdateOtherRepData(ReadonlyTableVariable): """ diff --git a/pym/update/wsdl_update.py b/pym/update/wsdl_update.py index bf71974..73703fb 100644 --- a/pym/update/wsdl_update.py +++ b/pym/update/wsdl_update.py @@ -69,11 +69,13 @@ class Wsdl(WsdlBase): 'cl_update_binhost_stable_opt_set', 'cl_update_binhost_recheck_set', 'cl_update_with_bdeps_opt_set', - 'cl_update_binhost_choice' + 'cl_update_other_set' + ), expert=( + 'cl_update_binhost_choice', 'cl_update_sync_only_set', - 'cl_update_other_set', + 'cl_update_pretend_set', 'cl_update_sync_rep', 'cl_update_emergelist_set', @@ -92,6 +94,7 @@ class Wsdl(WsdlBase): 'cl_update_cleanpkg_set', 'cl_update_branch_data', 'cl_templates_locate', + 'cl_update_inner_other_set', 'cl_verbose_set', 'cl_dispatch_conf'), next_label=_("Run"))]}, #