diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index cdc6fcc..c13a202 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -165,7 +165,9 @@ class ClUpdateAction(Action): {'name': 'update_other:revdev_rebuild', 'message': __('Checking reverse dependencies'), 'method': 'Update.revdep_rebuild("revdep-rebuild")', - 'condition': was_installed('.*', log_names['revdep']), + 'condition': lambda Get:(Get('cl_update_skip_rb_set') == 'off' + and ClUpdateAction.was_installed('.*', + ClUpdateAction.log_names['revdep'])()), 'decoration': 'Update.update_task("%s")' % log_names['revdep'] }, {'name': 'update_other:dispatch_conf_end', @@ -292,3 +294,5 @@ class ClUpdateAction(Action): 'condition': lambda Get: Get('cl_rebuild_world_set') == 'on' }, ] + + was_installed = staticmethod(was_installed) diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index ac50c6e..8317352 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -1098,6 +1098,19 @@ class VariableClUpdateOutdatedKernelPath(Variable): """ value = "/var/lib/calculate/calculate-update/outdated_kernel" +class VariableClUpdateSkipRbSet(Variable): + """ + Пропусить revdep-rebuild + """ + type = "bool" + value = "off" + + opt = ["-R", "--skip-revdep-rebuild"] + + def init(self): + self.label = _("Skip reverse dependencies check") + self.help = _("skip reverse dependencies check") + class VariableClUpdateOutdatedKernelSet(ReadonlyVariable): """ Есть наличие устаревшего ядра diff --git a/pym/update/wsdl_update.py b/pym/update/wsdl_update.py index 61baa29..932baf7 100644 --- a/pym/update/wsdl_update.py +++ b/pym/update/wsdl_update.py @@ -74,6 +74,7 @@ class Wsdl(WsdlBase): 'cl_update_world', 'cl_update_egencache_force', 'cl_update_eixupdate_force', + 'cl_update_skip_rb_set', 'cl_update_wait_another_set', 'cl_update_branch', 'cl_update_autocheck_schedule_set',