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

develop
Mike Khiretskiy 9 years ago
parent f445d23e28
commit c1578da76f

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

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

Loading…
Cancel
Save