repair |
OSRPkgVerify.ycp |
Packages check | |
|
|
This module has an unstable interface. |
Provide osr mode information.
Imports
Global VariablesGlobal Functions
Local VariablesLocal Functions |
global
missing
->
string
Missing key. For parsing rpm output.
global
unsatisfied
->
string
Unsatisfied key. For parsing rpm output.
local
all_tests
->
string
Rpm symbol for all tests.
local
possible
->
string
All allowed rpm test options.
global
separator
->
string
Key seperate packagename with not valid file count.
local
verified_packages
->
map
index of all currently verified packages
global
max_files
->
integer
maximum of file entries shown in detailed pkg verification summary (necessary because of potential large memory requirements)
global
initial_verified_packages
->
map
Verified packages after a new installation.
global
Reset ()
->
void
global
OSRPkgVerify ()
->
void
module constructor: read packages with build problems
local
unimportant_file_type (string file, string status)
->
string
- Parameters:
-
file status
local
config_file_allowed (map pkg_data)
->
string
- Parameters:
-
pkg_data
local
update_problems (string pkg_name, string file, string status)
->
string
- Parameters:
-
pkg_name file status
local
build_problems (string pkg_name, map pkg_data)
->
string
- Parameters:
-
pkg_name pkg_data
global
GreenPackageProblems (string pkg_name, map pkg_data)
->
string
Return if a package was not build correctly.
- Parameters:
-
pkg_name pkg_data
Info:
Convert rpm output to a map.
- Parameters:
-
pkg_name The package name e.g.: filesystem verify_output_string The rpm output: .....UG. /etc/cups .M...... /proc
- Return value:
-
e.g.: $["filesystem____KEY____1": $["config_file":false, "file":"/etc/cups", "status":".....UG." ], "filesystem____KEY____2" :$["config_file":false, " file":"/proc", "status":".M......"]]
global
Verify (string p, string root_mountpoint)
->
boolean
- Parameters:
-
p root_mountpoint
global
WriteVerifiedPackages (list installed, boolean debug)
->
boolean
Debug the verified packages informations.
- Parameters:
-
installed debug