From 945c398bf75405d2902dd23c5e2618e43956ddf8 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Jan 2023 18:12:32 +0300 Subject: [PATCH] =?UTF-8?q?TG-106=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3=D0=B0=20=D1=81=20=D0=BD=D0=B5=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D1=8B=D0=BC=20=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D0=BC=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/variables/update.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 8ba0e31..32f4531 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -666,7 +666,7 @@ class VariableClUpdateOtherSet(Variable): """ Обновить остальные оверлеи """ - type = "boolauto" + type = "bool3" opt = ["-o", "--update-other"] metavalue = _("ON/OFF/AUTO") value = Variable.Auto @@ -961,11 +961,11 @@ class VariableClUpdateProfileCheckSyncAllowed(Variable): for rep in repos: with open(f'{rep}/test', 'w') as inf: inf.write("test") - quite_unlink(f"{rep}/test") + os.unlink(f"{rep}/test") path = self.Get(self.cache_path) - with open(f'{rep}/test', 'w') as inf: + with open(f'{path}/test', 'w') as inf: inf.write("test") - quite_unlink(f"{rep}/test") + os.unlink(f"{path}/test") except OSError: return False return True @@ -1573,9 +1573,7 @@ class VariableClUpdateKernelPkg(ReadonlyVariable): def get(self): src_path = self.Get('cl_update_kernel_src_path') if src_path: - qfile = process('/usr/bin/qfile', '-vqC', src_path) - if qfile.success(): - return qfile.read().strip() + return return ""