Исправлена установка значений переменных

develop
Mike Khiretskiy 9 anni fa
parent f445d23e28
commit c1578da76f

@ -1128,7 +1128,7 @@ class Update(object):
self.clVars.Delete('cl_update_binhost', location="system")
raise UpdateError("Binhost is unavailable")
if write_binhost:
if hosts[0] != self.clVars.Get('cl_update_binhost'):
if hosts[0] != self.clVars.Get('update.cl_update_binhost'):
self.refresh_binhost = True
self.clVars.Write('cl_update_binhost', hosts[0], location="system")
return True

@ -1217,11 +1217,10 @@ class DataVarsUpdateProfile(SimpleDataVars):
VariableClUpdateBinhostList(section="update"),
VariableClUpdateBinhostRevisionPath(section="update"),
)
# TODO: при переключении профиля использовать master ветки
self.cache['cl_profile_system'] = profile
self.cache['cl_chroot_path'] = chroot_path
self['cl_profile_system'] = profile
self['cl_chroot_path'] = chroot_path
if recheck is not None:
self.cache['cl_update_binhost_recheck_set'] = recheck
self['cl_update_binhost_recheck_set'] = recheck
self.flIniFileFrom(profile)
def __repr__(self):

Caricamento…
Annulla
Salva