Browse Source

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

develop
Mike Khiretskiy 7 years ago
parent
commit
c1578da76f
  1. 2
      pym/update/update.py
  2. 7
      pym/update/variables/update.py

2
pym/update/update.py

@ -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

7
pym/update/variables/update.py

@ -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):

Loading…
Cancel
Save