From 39adca4228b5911cd0c107363fa45b6b3de19cbb Mon Sep 17 00:00:00 2001 From: Mike khiretskiy Date: Tue, 1 Oct 2013 08:51:38 +0400 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=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8=20world?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/utils/cl_update.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/update/utils/cl_update.py b/update/utils/cl_update.py index 3b058e9..9b84550 100644 --- a/update/utils/cl_update.py +++ b/update/utils/cl_update.py @@ -31,7 +31,7 @@ class ClUpdateAction(Action): # ошибки, которые отображаются без подробностей native_error = (FilesError,) - successMessage = __("Revision update finished!") + successMessage = None failedMessage = __("Failed to update of system revision") interruptMessage = __("Update manually interrupted") @@ -40,4 +40,14 @@ class ClUpdateAction(Action): {'name':'dispatch', 'method':'Install.applyTemplates(install.cl_source,cl_template_clt_set,'\ 'True,None)', + }, + # сообщение удачного завершения при обновлении ревизии + {'name':'success_rev', + 'message' : __("Revision update finished!"), + 'condition':lambda Get:Get('cl_update_rev_set') == 'on' + }, + # сообщение удачного завершения при пересоздании world + {'name':'success_world', + 'message' : __("World rebuilding finished!"), + 'condition':lambda Get:Get('cl_rebuild_world_set') == 'on' }]