Browse Source

Добавлен параметр пропуска revdep-rebuild

develop
Mike Khiretskiy 8 years ago
parent
commit
71c376f8b6
  1. 6
      pym/update/utils/cl_update.py
  2. 13
      pym/update/variables/update.py
  3. 1
      pym/update/wsdl_update.py

6
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)

13
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):
"""
Есть наличие устаревшего ядра

1
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',

Loading…
Cancel
Save