Фикс бага с неправильным именем переменной
master
root 1 year ago
parent 052f9c9874
commit 945c398bf7

@ -666,7 +666,7 @@ class VariableClUpdateOtherSet(Variable):
""" """
Обновить остальные оверлеи Обновить остальные оверлеи
""" """
type = "boolauto" type = "bool3"
opt = ["-o", "--update-other"] opt = ["-o", "--update-other"]
metavalue = _("ON/OFF/AUTO") metavalue = _("ON/OFF/AUTO")
value = Variable.Auto value = Variable.Auto
@ -961,11 +961,11 @@ class VariableClUpdateProfileCheckSyncAllowed(Variable):
for rep in repos: for rep in repos:
with open(f'{rep}/test', 'w') as inf: with open(f'{rep}/test', 'w') as inf:
inf.write("test") inf.write("test")
quite_unlink(f"{rep}/test") os.unlink(f"{rep}/test")
path = self.Get(self.cache_path) 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") inf.write("test")
quite_unlink(f"{rep}/test") os.unlink(f"{path}/test")
except OSError: except OSError:
return False return False
return True return True
@ -1573,9 +1573,7 @@ class VariableClUpdateKernelPkg(ReadonlyVariable):
def get(self): def get(self):
src_path = self.Get('cl_update_kernel_src_path') src_path = self.Get('cl_update_kernel_src_path')
if src_path: if src_path:
qfile = process('/usr/bin/qfile', '-vqC', src_path) return
if qfile.success():
return qfile.read().strip()
return "" return ""

Loading…
Cancel
Save