YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • AddOnProduct
  • CommandLine
  • Directory
  • FTP
  • FileUtils
  • GetInstArgs
  • HTTP
  • Installation
  • Label
  • Language
  • Mode
  • NetworkService
  • OneClickInstallStandard
  • PackageCallbacks
  • PackageLock
  • Popup
  • ProductControl
  • ProductFeatures
  • Progress
  • Report
  • Sequencer
  • SourceManager
  • Stage
  • String
  • URL
  • Wizard
  • XML

Includes

  • installation/misc.ycp

Structures

Local Functions

local NormalizeURL (string url_string) -> string

Removes slashes from the end of the URL (or just string). Needed to fix bug #329629.

Parameters:
url_string
local IsAddOnAlreadySelected (string s_url, string s_path) -> integer

Returns whether this URL/Path is already added as a source -1 == not added 0 or 1 or 2 ... or 'n' means 'added as source $id'

Parameters:
s_url
s_path
local GetLocalizedString (string current_id, list <string> possible_keys) -> string

Returns a localized string using given parametters.

Structure $[

     // key
     "description" : "repository description",
     // "localized" + key
     "localized_description" : $[
         "en_GB" : "repository description (localized to en_GB)",
         ...
     ],
 ]
Parameters:
current_id
possible_keys