YaST2 Developers Documentation: installation

installation

modules/ProductControl.ycp
Product Control routines

This module has an unstable interface.

Imports

  • Arch
  • Directory
  • Hooks
  • Label
  • Mode
  • Popup
  • ProductFeatures
  • Report
  • Stage
  • Wizard
  • XML

Global Functions

Local Functions

global setClientPrefix (string prefix) -> void

Set Client Prefix

Parameters:
prefix
global checkDisabled (map mod) -> boolean

Check if a module is disabled

Parameters:
mod
global ReadControlFile (string controlfile) -> boolean

Read XML Control File

Parameters:
controlfile
global checkArch (map mod, map def) -> boolean

Check if valid architecture

Parameters:
mod
def
Return value:
true if arch match
global getClientTerm (map step, map def, any former_result) -> term

Return term to be used to run module with CallFunction

Parameters:
step
def
former_result
Return value:
module data with params
global getModeDefaults (string stage, string mode) -> map

Get workflow defaults

Parameters:
stage
mode
Return value:
defaults
local PrepareScripts (map m) -> void

Prepare Workflow Scripts

Parameters:
m Workflow module map
global RequiredFiles (string stage, string mode) -> list<string>

Get list of required files for the workflow.

Parameters:
stage
mode
Return value:
Required files list.
global getCompleteWorkflow (string stage, string mode) -> map

Get Workflow

Parameters:
stage Stage
mode Mdoe
Return value:
Workflow map
global getModules (string stage, string mode, symbol which) -> list<map>

Get modules of current Workflow

Parameters:
stage
mode
which
Return value:
modules
global getWorkflowLabel (string stage, string mode, string wz_td) -> string

Get Workflow Label

Parameters:
stage
mode
wz_td
global AddWizardSteps (list<map> stagemode) -> void

Add Wizard Steps

Parameters:
stagemode
global UpdateWizardSteps (list<map> stagemode) -> void

Update Steps

Parameters:
stagemode
global RetranslateWizardSteps () -> void

Retranslate Wizard Steps

global getProposals (string stage, string mode, string proptype) -> list < list >

Get modules of current Workflow

Parameters:
stage
mode
proptype
Return value:
modules
global getLockedProposals (string stage, string mode, string proptype) -> list<string>

Get Proposal list that can not be changed by the user.

Parameters:
stage
mode
proptype
Return value:
list of locked proposals
global getProposalTextDomain () -> string

Return text domain

global getProposalProperties (string stage, string mode, string proptype) -> map

Return proposal Label

Parameters:
stage
mode
proptype
global Init () -> boolean

Initialize Product Control

Return value:
True on success
local retranslateWizardDialog () -> void

Re-translate static part of wizard dialog and other predefined messages after language change

Info:

If workflow module is marked as optional, skip if it returns nil, For example, if it is not installed.

global Run () -> symbol

Run Workflow

global SkippedSteps () -> list<map>

List steps which were skipped since last restart of YaST

Return value:
a list of maps describing the steps
global RestartingStep () -> map

Return step which restarted YaST (or rebooted the system)

Return value:
a map describing the step
global ProductControl () -> void

ProductControl Constructor