repair |
OSRPkg.ycp |
Packages check | |
|
|
This module has an unstable interface. |
Provide osr mode information.
Imports
Global VariablesGlobal Functions
Local Variables
Local Functions |
Package database files
Package database files (version >=4)
Current package database files
if a backup (YaST) of the package database was created. Save rpm?_db_files[X] -> rpm?_db_files[X].old
Mount point where the target system is mounted.
Help text to show errors.
Error text.
Dialog description for the install missing or damaged packages.
Missing packages database files.
Not installed base packages or damaged packages.
All new installed packages.
This will be local when converted to a Module:: Has Pkg::TargetInit run?
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.
This will be local when converted to a Module:: Has Pkg::SourceStartCache run?
Reset the module settings.
Constructor.
Open the package database.
- Parameters:
-
root
Check if target product is the same as the source (bug #45306)
- Return value:
-
true if product are the same
Return false if db files are missing. Save missing files in the list not_found_files.
- Parameters:
-
root
Make a backup of the package database files.
Revert the YaST backup of the package database.
Rebuild the package database.
- Parameters:
-
show_message
Revert a backup of the package database from /var/adm/backup/rpmdb.
Repair or initialise a damaged package damaged. Call CheckDB before.
Return all packages which should be verified
- Parameters:
-
what
Check if all minimal required packages are installed.
- Parameters:
-
root
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.
Install selected Packages. The packages are damaged or not install. Call CheckMinimum or VerifyPackages before.
- Parameters:
-
use_dialog