From 9453f0196bf90980e514781b3531a55021fcf9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 26 Oct 2017 14:16:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=84=D0=B8=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * проблема возникает если происходит переключение профиля на репозиторий в котором часть переменных находится в вышестоящем репозиторий, но который еще не скачен, исправлено подавлением ошибки. --- pym/update/update.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pym/update/update.py b/pym/update/update.py index 90c0aaf..8cf5b91 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -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",