изменено: pym/update/update.py

изменено:      pym/update/variables/update.py
master
root 1 year ago
parent 1ee37f9c43
commit 7a01f44877

@ -1618,6 +1618,9 @@ class Update(MethodsInterface):
def create_binhost_data(self):
dv = self.clVars
last_ts = dv.Get('cl_update_last_timestamp')
if not dv.Get('update.cl_update_binhost') and not dv.Get('update.cl_update_binhost_choice'):
dv.Write('cl_update_binhost_set', "off")
dv.Set('cl_update_binhost_set', 'off')
if (not dv.Get('update.cl_update_binhost_choice') and not dv.GetBool('update.cl_update_binhost_set')) \
or dv.Get('update.cl_update_binhost_choice') == 'auto':
if dv.Get('cl_update_binhost_stable_opt_set'):

@ -340,6 +340,11 @@ class VariableClUpdateBinhostSet(Variable):
type = "bool"
value = 'off'
def get(self):
if self.Get('cl_update_binhost'):
return self.value
return 'off'
class VariableClUpdateBinhostsInfo(ReadonlyVariable):
"""

Loading…
Cancel
Save