Browse Source

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

tags/3.3.0.2
Mike Khiretskiy 6 years ago
parent
commit
71c376f8b6
3 changed files with 19 additions and 1 deletions
  1. +5
    -1
      pym/update/utils/cl_update.py
  2. +13
    -0
      pym/update/variables/update.py
  3. +1
    -0
      pym/update/wsdl_update.py

+ 5
- 1
pym/update/utils/cl_update.py View File

@@ -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
- 0
pym/update/variables/update.py View File

@@ -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
- 0
pym/update/wsdl_update.py View File

@@ -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