YaST2 Developers Documentation: ProductLicense

ProductLicense

ProductLicense.ycp
Provide access / dialog for product license

This module has an unstable interface.

Imports

  • Directory
  • FileUtils
  • InstShowInfo
  • Language
  • Mode
  • Popup
  • Report
  • Stage
  • Wizard

Global Functions

Local Functions

local DisplayLicenseDialog (list<string> languages, boolean back) -> void

Displays License with Help and ( ) Yes / ( ) No radio buttons

Parameters:
languages
back
local CleanUpLicense (string tmpdir) -> void

Removes the temporary directory for licenses

Parameters:
tmpdir
local LicenseFiles (string dir, list<string> patterns) -> map<string,string>

Get all files with license existing in specified directory

Parameters:
dir string directory to look into
patterns a list of patterns for the files, regular expressions with %1 for the language
Return value:
a map $[ lang_code : filename ]
global AskLicenseAgreement (integer src_id, string dir, list<string> patterns, string action, boolean enable_back, boolean base_product) -> symbol

Ask user to confirm license agreement

Parameters:
src_id integer source to get the license from
dir string directory to look for the license in if src_id is nil and not 1st stage installation
patterns a list of patterns for the files, regular expressions with %1 for the language
action
enable_back
base_product