Browse Source

Добавлен параметр skip-setup-system для cl-update-profile

master3.3
Mike Khiretskiy 7 years ago
parent
commit
d2568ecf85
  1. 3
      pym/update/utils/cl_update_profile.py
  2. 12
      pym/update/variables/update.py
  3. 3
      pym/update/wsdl_update.py

3
pym/update/utils/cl_update_profile.py

@ -112,7 +112,8 @@ class ClUpdateProfileAction(Action):
{'name': 'reconfigure',
'message': __("The system is being configured"),
'method': 'Update.applyProfileTemplates(cl_template_clt_set,True,False)',
'condition': lambda Get: Get('cl_update_templates_locate')
'condition': lambda Get: (Get('cl_update_templates_locate')
and Get('cl_update_skip_setup_set') == 'off')
},
{'name': 'dispatch_conf',
'message': __("Updating configuration files"),

12
pym/update/variables/update.py

@ -1060,3 +1060,15 @@ class VariableClUpdateLinesLimit(Variable):
"""
type = "int"
value = "30"
class VariableClUpdateSkipSetupSet(Variable):
"""
Пропустить выполнение cl-setup-system в cl-update-profile
"""
type = "bool"
value = "off"
opt = ["--skip-setup-system"]
def init(self):
self.label = _("Skip the system setup")
self.help = _("skip the system setup")

3
pym/update/wsdl_update.py

@ -119,7 +119,8 @@ class Wsdl(WsdlBase):
lambda group: group(_("Profile"),
normal=('cl_update_profile_system',
'cl_update_world'),
expert=('cl_update_templates_locate',
expert=('cl_update_skip_setup_set',
'cl_update_templates_locate',
'cl_verbose_set',
'cl_dispatch_conf'),
hide=('cl_update_templates_locate',

Loading…
Cancel
Save