214. ProductCreator

Data for configuration of product-creator, input and output functions.

214.1. Summary of Module Globals

List of Global Functions

  • CheckLanguage - Check if there is a language selected in the package manager, if not then select the language used in the UI. Htis prevents the solver from allocating too many resources (see bug #339756)

  • CopyMiscFiles - CopyMiscFiles Copy other files to directory tree

  • CopyPackages - CopyPackages() Copy selected package to target tree

  • CreateSkeleton - Create Skeleton

  • EnableSource - Enable source and get source meta data

  • Export - Dump the product-creator settings to a single map (For use by autoinstallation.)

  • GetDirSources - Get all possible sources

  • Import - Get all product-creator settings from the first parameter (For use by autoinstallation.)

  • Modified - Data was modified?

  • Overview - Create an overview table with all configured cards

  • PrepareConfigs - Prepare map for writing into XML

  • ProductCreator - Constructor

  • Read - Read all product-creator settings

  • Readisolinux - Return contents of isolinux.cfg from the given source

  • Summary - Create a textual summary and a list of unconfigured cards

  • Write - Write all product-creator settings

  • checkPackageAvail - Check if selected packages are available

  • checkProductDependency - Check Product dependencies and determine product to be used for booting. Also determine what is the main product.

  • configSetup - Create XML Configuration

  • getSourceDir - get path to directory source

  • getSourceURLs - Get media urls

  • setPackages - Set packages to be copied to iso image tree

List of Global Variables

214.2. Global Functions

214.2.1. CheckLanguage

Check if there is a language selected in the package manager, if not then select the language used in the UI. Htis prevents the solver from allocating too many resources (see bug #339756)

Return value

  • void

214.2.2. CopyMiscFiles

CopyMiscFiles Copy other files to directory tree

Return value

  • boolean - true on success

214.2.3. CopyPackages

CopyPackages() Copy selected package to target tree

Return value

  • boolean

214.2.4. CreateSkeleton

Create Skeleton

Return value

  • boolean - true on success

214.2.5. EnableSource

Enable source and get source meta data

Return value

  • boolean - true on success

214.2.6. Export

Dump the product-creator settings to a single map (For use by autoinstallation.)

Return value

  • map - Dumped settings (later acceptable by Import ())

214.2.7. GetDirSources

Get all possible sources

Function parameters

  • string source

Return value

  • list<term> - available enabled sources list for widget

214.2.8. Import

Get all product-creator settings from the first parameter (For use by autoinstallation.)

Function parameters

  • map settings

Return value

  • boolean - True on success

214.2.9. Modified

Data was modified?

Return value

  • boolean - true if modified

214.2.10. Overview

Create an overview table with all configured cards

Return value

  • list - table items

214.2.11. PrepareConfigs

Prepare map for writing into XML

Return value

  • list - lists of configurations

214.2.12. ProductCreator

Constructor

Return value

  • void

214.2.13. Read

Read all product-creator settings

Return value

  • boolean - true on success

214.2.14. Readisolinux

Return contents of isolinux.cfg from the given source

Return value

  • string - with contents of file.

214.2.15. Summary

Create a textual summary and a list of unconfigured cards

Return value

  • list - summary of the current configuration

214.2.16. Write

Write all product-creator settings

Return value

  • boolean - true on success

214.2.17. checkPackageAvail

Check if selected packages are available

Return value

  • string - error message

214.2.18. checkProductDependency

Check Product dependencies and determine product to be used for booting. Also determine what is the main product.

Return value

  • integer

214.2.19. configSetup

Create XML Configuration

Return value

  • void

214.2.20. getSourceDir

get path to directory source

Function parameters

  • string url

Return value

  • string - path

214.2.21. getSourceURLs

Get media urls

Function parameters

  • list<integer> ids

Return value

  • list - list of urls

214.2.22. setPackages

Set packages to be copied to iso image tree

Return value

  • boolean

214.3. Global Variables

214.3.1. AbortFunction

Abort function return boolean return true if abort

214.3.2. modified

Data was modified?

214.4. Module Requirements

214.4.1. Module Imports

  • Arch
  • AutoinstSoftware
  • CommandLine
  • Directory
  • FileUtils
  • GPG
  • GPGWidgets
  • Misc
  • Mode
  • PackageAI
  • PackageCallbacks
  • Profile
  • Profile
  • Progress
  • Report
  • String
  • Summary
  • URL
  • XML

214.4.2. Module Includes

  • product-creator/routines.ycp