YaST2 Developers Documentation: repair

repair

OSRPkg.ycp
Packages check

This module has an unstable interface.

Provide osr mode information.

Imports

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

Global Variables

Global Functions

Local Variables

Local Functions

local rpm3_db_files -> list<string>

Package database files

local rpm4_db_files -> list<string>

Package database files (version >=4)

local rpm_db_files -> list<string>

Current package database files

local backup_created -> boolean

if a backup (YaST) of the package database was created. Save rpm?_db_files[X] -> rpm?_db_files[X].old

global root_mountpoint -> string

Mount point where the target system is mounted.

global help_text -> string

Help text to show errors.

global error_text -> string

Error text.

global install_missing_dialog_data -> list

Dialog description for the install missing or damaged packages.

global not_found_files -> list <string>

Missing packages database files.

global missing_packages -> list <string>

Not installed base packages or damaged packages.

local reinstalled_packages -> list <string>

All new installed packages.

local target_initialized -> boolean

This will be local when converted to a Module:: Has Pkg::TargetInit run?

local first_time_openpkg -> boolean

Before first opening pkg database, we need to close it preventively (because it could be opened with a different root path). This variable says, if it is first time now.

local source_initialized -> boolean

This will be local when converted to a Module:: Has Pkg::SourceStartCache run?

global Reset () -> void

Reset the module settings.

global OSRPkg () -> void

Constructor.

global OpenPkg (string root) -> boolean

Open the package database.

Parameters:
root
global CheckProductVersions () -> boolean

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

Return value:
true if product are the same
global CheckDB (string root) -> boolean

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

Parameters:
root
local backup_package_db () -> boolean

Make a backup of the package database files.

local revert_packages_backup () -> boolean

Revert the YaST backup of the package database.

local rebuild_package_db (boolean show_message) -> boolean

Rebuild the package database.

Parameters:
show_message
local revert_daily_backup () -> boolean

Revert a backup of the package database from /var/adm/backup/rpmdb.

global RepairDB () -> symbol

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

local get_verify_packages (string what) -> list<string>

Return all packages which should be verified

Parameters:
what
global CheckMinimum (string root) -> boolean

Check if all minimal required packages are installed.

Parameters:
root
global VerifyPackages (string root, string what, boolean expert_mode, boolean reset) -> symbol

Verify all specified packages.

Parameters:
root The mount point where the target system is mounted.
what "all" or "base" packages
expert_mode Show the verify protocol too
reset Clear missing_packages before start verifying.
global InstallMissing (boolean use_dialog) -> symbol

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

Parameters:
use_dialog