YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Arch
  • Directory
  • FileUtils
  • Mode
  • Package
  • PackageSystem
  • Popup
  • Progress
  • Report
  • String

Global Variables

Global Functions

Local Functions

Info:

File: modules/AddOnCreator.ycp Package: Configuration of add-on-creator Summary: AddOnCreator settings, input and output functions Authors: Jiri Suchomel

$Id: AddOnCreator.ycp 44524 2008-02-15 14:48:24Z jsuchome $

global modified -> boolean

Data was modified?

global Modified () -> boolean

Data was modified?

Return value:
true if modified
global GenerateGPGKey (map<string,string> data) -> string

Generate the key pair

Parameters:
data
global Read () -> boolean

Initialize the settings for add-on-creator

Return value:
true on success
global ImportExistingProduct (string dir_path) -> boolean

import the data from existing add-on

Parameters:
dir_path
local create_argument_lists (string stdout) -> list<string>

converts the output of find command (=possibly big string with each file on one line), to the list of smaller strings (<128kB), each with space separated file names

Parameters:
stdout output of find command
global UpdateContentMap () -> map<string,string>

Update content_map with current value of 'content' list

global WriteContentFile (string base_path, list<map> content_data) -> boolean

Write the content file

Parameters:
base_path
content_data
Return value:
success
global WriteStringFiles (string base_path, map<string,string> files) -> boolean

Write the readme/COPYING/COPYRIGHT... files in base_path

Parameters:
base_path
files
Return value:
success
global GenerateDirectories (string base_path) -> void

generate the paths of media, data and description dirs

Parameters:
base_path
global CreateAddOnStructure (string base_path) -> boolean

Create the directory structure of the Add-On

Parameters:
base_path
Return value:
success
global GenerateArchiveFiles (string base_path) -> boolean

Generate ARCHIVES.gz, INDEX.gz and ls-lR.gz

Parameters:
base_path
global WritePatchesFiles (string base_path, list<string> p_files) -> boolean

Create the patches files

Parameters:
base_path path to base output directory
p_files
Return value:
success
global WriteProductsFiles (string base_path, list<string> p_files) -> boolean

Create the products file FIXME editor - see ExpertSettingsDialog3

Parameters:
base_path path to base output directory
p_files
Return value:
success
global WriteMediaFiles (string base_path, list<string> m_files, string next) -> boolean

Write the media.n/media files

Parameters:
base_path path to base output directory
m_files list of media files contents
next content of nextmedia file
Return value:
success
global WritePatterns (string base_path) -> boolean

Write all files with patterns definitions TODO use agent...

Parameters:
base_path
global CopyRPMs (string in_path, string base_path) -> boolean

Copy the packages from the source directory to target

Parameters:
in_path source path
base_path destination directory
Return value:
success
local WriteWorkflow (string base_path, string desc_path, list<string> packages, string y2update_p) -> boolean

Write the modification of installation workflow

Parameters:
base_path path to base output directory
desc_path path to workflow description file
packages list with paths of packages to be included in y2update.tgz
y2update_p
local WriteServicepackArchive (string base_path) -> boolean

Generate servicepack.tar.gz archive for bootable media

Parameters:
base_path base output path
global CreateMD5SUMS (string base_path) -> boolean

Create MD5SUMS files

Parameters:
base_path
Return value:
success
global SignAddOn (string base_path, string key) -> boolean

Sign the add-on

Parameters:
base_path
key
global CreateDirectoryYaSTFiles (string base_path) -> boolean

Create directory.yast files (the last step)

Parameters:
base_path
Return value:
success
global CreateISOImage (string dir_path, string iso_p, string name) -> boolean

Create an ISO image of the product

Parameters:
dir_path
iso_p
name
global Write () -> boolean

Write all add-on-creator settings

Return value:
true on success
global Export () -> map

Export the settings about current Add-On product