From 7a01f44877505438758a844c0df3abff95d463d9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Nov 2022 16:00:25 +0300 Subject: [PATCH] =?UTF-8?q?=09=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE:=20=20=20=20=20=20pym/update/update.py=20=09=D0=B8=D0=B7?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE:=20=20=20=20=20=20pym/upda?= =?UTF-8?q?te/variables/update.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/update.py | 3 +++ pym/update/variables/update.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/pym/update/update.py b/pym/update/update.py index 0e58e24..32ab318 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -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'): diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 7ae6a7e..91fe97b 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -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): """