|
|
|
@ -57,10 +57,6 @@ def get_synchronization_tasks(object_name):
|
|
|
|
|
Get('update.cl_update_sync_rep') and
|
|
|
|
|
Get('update.cl_update_binhost'))
|
|
|
|
|
},
|
|
|
|
|
{'name': 'not_use_search:failed_base_binhost',
|
|
|
|
|
'error': __("Failed to use base binhost"),
|
|
|
|
|
'depend': AllTasks.failed_all("check_current_binhost")
|
|
|
|
|
},
|
|
|
|
|
{'name': 'group_find_binhost',
|
|
|
|
|
'group': '',
|
|
|
|
|
'while': (~AllTasks.has_any("detect_best_binhost") &
|
|
|
|
@ -125,12 +121,17 @@ def get_synchronization_tasks(object_name):
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{'name': 'not_use_search:failed_base_binhost',
|
|
|
|
|
'error': __("Failed to use base binhost"),
|
|
|
|
|
'method': Object("delete_binhost()"),
|
|
|
|
|
'depend': AllTasks.failed_all("check_current_binhost")
|
|
|
|
|
},
|
|
|
|
|
{'name': 'no_server',
|
|
|
|
|
'error': __("Failed to find the binary updates server"),
|
|
|
|
|
'method': Object("delete_binhost()"),
|
|
|
|
|
# method: который должен удалить текущую информацию о сервере обновлений
|
|
|
|
|
'depend': (Tasks.failed() |
|
|
|
|
|
Tasks.success() & AllTasks.failed_one_of("update_packages_cache")),
|
|
|
|
|
'depend': (~Tasks.has_any("failed_base_binhost") & (Tasks.failed() |
|
|
|
|
|
Tasks.success() & AllTasks.failed_one_of("update_packages_cache"))),
|
|
|
|
|
'condition': lambda GetBool, Get: (GetBool('update.cl_update_usetag_set') and
|
|
|
|
|
Get('update.cl_update_sync_rep')),
|
|
|
|
|
},
|
|
|
|
|