From 224ef40ba3fcaa24f8b22ea70e902031dd46106a Mon Sep 17 00:00:00 2001 From: idziubenko Date: Sat, 5 Mar 2022 11:11:09 +0300 Subject: [PATCH] now prints "sync" instead of "update" in sync-only update --- pym/update/utils/cl_update.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index 6a74da4..4d1b0bd 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -503,7 +503,15 @@ class ClUpdateAction(Action): {'name': 'success_rev', 'message': __("System update finished!"), 'condition': lambda Get: (Get('cl_update_rev_set') == 'on' and - Get('cl_update_pretend_set') == 'off') + Get('cl_update_pretend_set') == 'off' and + Get('cl_update_sync_only_set') == 'off') + }, + # сообщение удачного завершения при обновлении ревизии + {'name': 'success_sync_only', + 'message': __("System sync finished!"), + 'condition': lambda Get: (Get('cl_update_rev_set') == 'on' and + Get('cl_update_pretend_set') == 'off' and + Get('cl_update_sync_only_set') == 'on') }, # сообщение удачного завершения при пересоздании world {'name': 'success_world',