fixed builder-update bug

master 3.7.2.8
idziubenko 2 years ago
parent 3142073819
commit 15b6d3b152

@ -1558,7 +1558,7 @@ class Update(MethodsInterface):
return True return True
@variable_module("update") @variable_module("update")
def _search_best_binhost(self, binhosts_data, stabilization): def _search_best_binhost(self, binhosts_data, stabilization, ignore_level=False):
if not self.clVars.Get('cl_ebuild_phase'): if not self.clVars.Get('cl_ebuild_phase'):
logger = self._get_binhost_logger() logger = self._get_binhost_logger()
if logger: if logger:
@ -1588,9 +1588,9 @@ class Update(MethodsInterface):
else: else:
# SUCCESS # SUCCESS
if self.compare_update_level(binhost.level) < 0: if not ignore_level and self.compare_update_level(binhost.level) < 0:
reason = self.Reason.LevelWrong reason = self.Reason.LevelWrong
if not binhost.downgraded or stabilization: elif not binhost.downgraded or stabilization:
host = "-> %s" % host host = "-> %s" % host
reason = self.Reason.Success reason = self.Reason.Success
else: else:
@ -1734,7 +1734,7 @@ class Update(MethodsInterface):
current_level_is_valid = self.check_current_level() if not ignore_level else None current_level_is_valid = self.check_current_level() if not ignore_level else None
self.startTask(_("Searching new binhost")) self.startTask(_("Searching new binhost"))
retval = self._search_best_binhost(self.binhosts_data, retval = self._search_best_binhost(self.binhosts_data,
stabilization) stabilization, ignore_level)
self.clVars.Set('update.cl_update_binhost_data', self.clVars.Set('update.cl_update_binhost_data',

Loading…
Cancel
Save