Browse Source

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

tags/3.2.2_beta4
Mike Khiretskiy 6 years ago
parent
commit
d2568ecf85
3 changed files with 16 additions and 2 deletions
  1. +2
    -1
      pym/update/utils/cl_update_profile.py
  2. +12
    -0
      pym/update/variables/update.py
  3. +2
    -1
      pym/update/wsdl_update.py

+ 2
- 1
pym/update/utils/cl_update_profile.py View File

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

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

+ 2
- 1
pym/update/wsdl_update.py View File

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