174. OSRPkg

Packages check

174.1. Summary of Module Globals

List of Global Functions

  • CheckDB - Return false if db files are missing. Save missing files in the list not_found_files.

  • CheckMinimum - Check if all minimal required packages are installed.

  • CheckProductVersions - Check if target product is the same as the source (bug #45306)

  • InstallMissing - Install selected Packages. The packages are damaged or not install. Call CheckMinimum or VerifyPackages before.

  • OSRPkg - Constructor.

  • OpenPkg - Open the package database.

  • RepairDB - Repair or initialise a damaged package damaged. Call CheckDB before.

  • Reset - Reset the module settings.

  • VerifyPackages - Verify all specified packages.

List of Global Variables

174.2. Global Functions

174.2.1. CheckDB

Return false if db files are missing. Save missing files in the list not_found_files.

Function parameters

  • string root

Return value

  • boolean

174.2.2. CheckMinimum

Check if all minimal required packages are installed.

Function parameters

  • string root

Return value

  • boolean

174.2.3. CheckProductVersions

Check if target product is the same as the source (bug #45306)

Return value

  • boolean - true if product are the same

174.2.4. InstallMissing

Install selected Packages. The packages are damaged or not install. Call CheckMinimum or VerifyPackages before.

Function parameters

  • boolean use_dialog

Return value

  • symbol

174.2.5. OSRPkg

Constructor.

Return value

  • void

174.2.6. OpenPkg

Open the package database.

Function parameters

  • string root

Return value

  • boolean

174.2.7. RepairDB

Repair or initialise a damaged package damaged. Call CheckDB before.

Return value

  • symbol

174.2.8. Reset

Reset the module settings.

Return value

  • void

174.2.9. VerifyPackages

Verify all specified packages.

Function parameters

  • string root

  • string what

  • boolean expert_mode

  • boolean reset

Return value

  • symbol

174.3. Global Variables

174.3.1. error_text

Error text.

174.3.2. help_text

Help text to show errors.

174.3.3. install_missing_dialog_data

Dialog description for the install missing or damaged packages.

174.3.4. missing_packages

Not installed base packages or damaged packages.

174.3.5. not_found_files

Missing packages database files.

174.3.6. root_mountpoint

Mount point where the target system is mounted.

174.4. Module Requirements

174.4.1. Module Imports

  • DefaultDesktop
  • Mode
  • OSRCommon
  • OSRExecute
  • OSRLogFile
  • OSRPkgUI
  • OSRPkgVerify
  • OSRPopup
  • OSRSystem
  • Packages
  • Popup
  • Report
  • Stage
  • Wizard

174.4.2. Module Includes