230. ProductCreator

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

230.1. Authors

  • Anas Nashif <nashif@suse.de>

230.2. Summary of Module Globals

List of Global Functions

  • Abort - Abort function

  • 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

  • PollAbort - Check for pending Abort press

  • 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

  • ReallyAbort - If modified, ask for confirmation

  • SetPackageArch - Set the target package architecture

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

  • Write - Write all product-creator settings

  • WritePatternFile - Write the modified file with pattern definitions

  • 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

230.3. Global Functions

230.3.1. Abort

Abort function

Return value

  • boolean - blah blah lahjk

230.3.2. 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

230.3.3. CopyMiscFiles

CopyMiscFiles Copy other files to directory tree

Function parameters

  • string boot_arch

Return value

  • boolean - true on success

230.3.4. CopyPackages

CopyPackages() Copy selected package to target tree

Return value

  • boolean

230.3.5. CreateSkeleton

Create Skeleton

Function parameters

  • integer base_source

  • boolean bootable_product

  • string boot_architecture

Return value

  • boolean - true on success

230.3.6. EnableSource

Enable source and get source meta data

Return value

  • boolean - true on success

230.3.7. Export

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

Return value

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

230.3.8. GetDirSources

Get all possible sources

Function parameters

  • string source

Return value

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

230.3.9. Import

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

Function parameters

  • map settings

Return value

  • boolean - True on success

230.3.10. Modified

Data was modified?

Return value

  • boolean - true if modified

230.3.11. Overview

Create an overview table with all configured cards

Return value

  • list - table items

230.3.12. PollAbort

Check for pending Abort press

Return value

  • boolean - true if pending abort

230.3.13. PrepareConfigs

Prepare map for writing into XML

Return value

  • list - lists of configurations

230.3.14. ProductCreator

Constructor

Return value

  • void

230.3.15. Read

Read all product-creator settings

Return value

  • boolean - true on success

230.3.16. Readisolinux

Return contents of isolinux.cfg from the given source

Return value

  • string - with contents of file.

230.3.17. ReallyAbort

If modified, ask for confirmation

Return value

  • boolean - true if abort is confirmed

230.3.18. SetPackageArch

Set the target package architecture

Function parameters

  • string new_arch

Return value

  • boolean - true on success

230.3.19. Summary

Create a textual summary and a list of unconfigured cards

Return value

  • list - summary of the current configuration

230.3.20. Write

Write all product-creator settings

Return value

  • boolean - true on success

230.3.21. WritePatternFile

Write the modified file with pattern definitions

Function parameters

  • string file_path

  • list<map> patterns

Return value

  • boolean - success

230.3.22. checkPackageAvail

Check if selected packages are available

Return value

  • string - error message

230.3.23. checkProductDependency

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

Return value

  • integer

230.3.24. configSetup

Create XML Configuration

Return value

  • void

230.3.25. getSourceDir

get path to directory source

Function parameters

  • string url

Return value

  • string - path

230.3.26. getSourceURLs

Get media urls

Function parameters

  • list<integer> ids

Return value

  • list - list of urls

230.3.27. setPackages

Set packages to be copied to iso image tree

Return value

  • boolean

230.4. Global Variables

230.4.1. AbortFunction

Abort function return boolean return true if abort

230.4.2. modified

Data was modified?

230.5. Module Requirements

230.5.1. Module Imports

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

230.5.2. Module Includes