Fix: cl-update-profile

master 3.7.2.49
root 1 year ago
parent c7744229ef
commit 9aad9102be

@ -1846,7 +1846,7 @@ class Update(MethodsInterface):
self.clVars.Set('update.cl_update_binhost_data', self.clVars.Set('update.cl_update_binhost_data',
retval or Variable.EmptyTable, force=True) retval or Variable.EmptyTable, force=True)
if not ignore_level: if not ignore_level:
best_binhost_level = int(self.clVars.Get("update.cl_update_binhost_level")[0]) best_binhost_level = int(self.clVars.Get("update.cl_update_binhost_level")[0]) or None
#int(sorted(self.clVars.Get("update.cl_update_binhost_level"), key=int)[-1]) #int(sorted(self.clVars.Get("update.cl_update_binhost_level"), key=int)[-1])
# int(self.clVars.Get("update.cl_update_binhost_level")[0]) # int(self.clVars.Get("update.cl_update_binhost_level")[0])

@ -84,7 +84,8 @@ def get_synchronization_tasks(object_name):
'depend': (Tasks.success() & ~AllTasks.has_any("not_use_search") & 'depend': (Tasks.success() & ~AllTasks.has_any("not_use_search") &
(~AllTasks.success_one_of("check_current_binhost") | (~AllTasks.success_one_of("check_current_binhost") |
AllTasks.success_all("sync_reps"))), AllTasks.success_all("sync_reps"))),
'condition': lambda Get: Get('update.cl_update_use_migration_host') == 'off' 'condition': lambda Get: Get('update.cl_update_use_migration_host') == 'off' and
not Get("update.cl_update_binhost_choice")
}, },
{'name': 'interrupt_on_no_leveled_binhost', {'name': 'interrupt_on_no_leveled_binhost',
'method': Object("interrupt_on_no_leveled_binhost()"), 'method': Object("interrupt_on_no_leveled_binhost()"),

@ -640,6 +640,11 @@ class VariableClUpdateOtherSet(Variable):
""" """
type = "bool" type = "bool"
value = "on" value = "on"
metavalue = _("Other overlays")
def init(self):
self.label = _("Update other overlays")
self.help = _("Update other overlays")
def get(self): def get(self):
if self.Get('cl_update_inner_other_set') != 'auto': if self.Get('cl_update_inner_other_set') != 'auto':

Loading…
Cancel
Save