diff --git a/pym/update/update.py b/pym/update/update.py index 05f3905..c7a621a 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -1308,7 +1308,7 @@ class Update(MethodsInterface): self.clVars.Get("update.cl_update_portage_binhost_path")) if path.exists(binhost_fn): os.unlink(binhost_fn) - return True + return False def update_binhost_list(self, dv=None): """ diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index e8f3861..8f45908 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -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')), },