Unknown YCP Module |
This module has an unstable interface. |
File: modules/ProductControl.ycp
Package: installation
Summary: Product Control routines
Authors: Anas Nashif
Set Client Prefix
- Parameters:
-
prefix
Enable given disabled module
- Parameters:
-
modname
- Return value:
-
current list of disabled modules
Disable given module in installation workflow
- Parameters:
-
modname
- Return value:
-
current list of disabled modules
Returns list of modules disabled in workflow
- Return value:
-
DisabledModules
Enable given disabled proposal
- Parameters:
-
enable_proposal
- Return value:
-
current list of disabled proposals
Disable given proposal in installation workflow
- Parameters:
-
disable_proposal
- Return value:
-
current list of disabled proposals
Returns list of proposals disabled in workflow
- Return value:
-
DisabledProposals
Check if a module is disabled
- Parameters:
-
mod
Read XML Control File
- Parameters:
-
controlfile
Check if valid architecture
- Parameters:
-
mod def
- Return value:
-
true if arch match
Returns name of the script to call. If 'execute' is defined, the client name is taken from there. Then, if a custom control file is defined, client name is defined as 'name'. Then, inst_'name' or just 'name' is returned if it does not match the 'inst_' regexp.
- Parameters:
-
name execute
Return term to be used to run module with CallFunction
- Parameters:
-
step def former_result
- Return value:
-
module data with params
Checks all params set by SetAdditionalWorkflowParams() whether they match the workfow got as parameter.
- Parameters:
-
check_workflow
Returns workflow matching the selected stage and mode and additiona parameters if set by SetAdditionalWorkflowParams()
- Parameters:
-
stage mode
- Return value:
-
workflow
Get workflow defaults
- Parameters:
-
stage mode
- Return value:
-
defaults
Prepare Workflow Scripts
- Parameters:
-
m Workflow module map
Get list of required files for the workflow.
- Parameters:
-
stage mode
- Return value:
-
Required files list.
Get Workflow
- Parameters:
-
stage Stage mode Mode
- Return value:
-
Workflow map
Get modules of current Workflow
- Parameters:
-
stage mode which
- Return value:
-
modules
Returns whether is is required to run YaST in the defined stage and mode
- Parameters:
-
stage mode
- Return value:
-
if needed
Get Workflow Label
- Parameters:
-
stage mode wz_td
Add Wizard Steps
- Parameters:
-
stagemode
Inits the default value for use_automatic_configuration
Adjust the automatic configuration to be either enabled or disabled. Enabling it means that second stage will be disabled.
- Parameters:
-
set_param
Returns whether automatic configuration will be enabled.
- Return value:
-
if enabled
Update Steps
- Parameters:
-
stagemode
Retranslate Wizard Steps
Get modules of current Workflow
- Parameters:
-
stage mode proptype
- Return value:
-
modules
Get Proposal list that can not be changed by the user.
- Parameters:
-
stage mode proptype
- Return value:
-
list of locked proposals
Return text domain
Return proposal Label
- Parameters:
-
stage mode proptype
Initialize Product Control
- Return value:
-
True on success
Re-translate static part of wizard dialog and other predefined messages after language change
If workflow module is marked as optional, skip if it returns nil, For example, if it is not installed.
Run Workflow
List steps which were skipped since last restart of YaST
- Return value:
-
a list of maps describing the steps
Return step which restarted YaST (or rebooted the system)
- Return value:
-
a map describing the step
ProductControl Constructor
Sets additional params for selecting the workflow
- Parameters:
-
params
- Example
-
SetAdditionalWorkflowParams ($["add_on_mode":"update"]); SetAdditionalWorkflowParams ($["add_on_mode":"installation"]);
Resets all additional params for selecting the workflow