Browse Source

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

tags/3.4.0_alpha5
Mike Khiretskiy 5 years ago
parent
commit
c1578da76f
2 changed files with 4 additions and 5 deletions
  1. +1
    -1
      pym/update/update.py
  2. +3
    -4
      pym/update/variables/update.py

+ 1
- 1
pym/update/update.py View File

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


+ 3
- 4
pym/update/variables/update.py View File

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