Исправлено выполнение шаблонов при переключении профилей

* проблема возникает если происходит переключение профиля на репозиторий
в котором часть переменных находится в вышестоящем репозиторий, но
который еще не скачен, исправлено подавлением ошибки.
master-3.5
parent 78161512fb
commit 9453f0196b

@ -1085,8 +1085,12 @@ class Update(MethodsInterface):
dv.importUpdate()
dv.flIniFile()
dv.Set('cl_action', action, force=True)
dv.Set('cl_templates_locate',
self.clVars.Get('cl_update_templates_locate'))
try:
dv.Set('cl_templates_locate',
self.clVars.Get('cl_update_templates_locate'))
except VariableError:
self.printERROR(_("Failed to apply profiles templates"))
return True
dv.Set("cl_chroot_path", '/', True)
dv.Set("cl_root_path", '/', True)
for copyvar in ("cl_dispatch_conf", "cl_verbose_set",

Loading…
Cancel
Save