YaST2 Developers Documentation: repair

repair

OSRPkgUI.ycp
Packages check UI

This module has an unstable interface.

Provide osr mode information.

Imports

  • HTML
  • Label
  • OSRExecute
  • OSRLogFile
  • OSRMode
  • OSRPkgVerify
  • OSRPopup
  • OSRProgress
  • OSRSystem
  • Popup
  • Report

Global Variables

Global Functions

Local Variables

Local Functions

local package_progress_bar -> symbol

Symbol and key's for the widget comunication

local modes -> list<list>

All allowed rpm test options with description.

local pause -> boolean

True if the user have paused the verifying process.

local show_ok -> boolean

Show successful package checks too.

local verified_text_ok -> string

Summary text of all passed and not passed packages.

local verified_text -> string

Summary text of the not passed packages only.

local package_count -> integer

Count of packages which should be checked.

local dialogs -> list

Dialogs for expert and normal mode.

global expert_mode -> boolean

If expert is activated.

local has_progress_widget -> boolean

if current UI can use `DownloadProgress

local packages_to_reinstall -> list

packages that should be reinstalled after verification (only helper structure, for showing list in dialogs)

local protocol_mode -> boolean

global Reset () -> void

Reset all (not static) module settings.

global OSRPkgUI () -> void

Constructor- reset module settings.

local fill (string str, integer length, string c) -> string

Fill a string with the specified character. Used in ncurses mode for formatting.

Parameters:
str
length
c
local get_verify_dialog () -> term

Return the current dialog ( expert or normal dialog).

local repaint () -> boolean

Repaint the displayed text depending on the show_ok value (CheckBox Show all).

local set_expert_mode (boolean t_expert_mode) -> void

Switch between expert and normal mode.

Parameters:
t_expert_mode
local check_string () -> string

Build string: Checking package: (43/234)

local build_verify_dialog_contents (string headline) -> void

Create to dialogs. One for the expert user mode and one for the normal user mode. Save both dialogs in the list dialogs for later use.

Parameters:
headline
global OpenVerifyDialog (integer size_progress, string headline, boolean t_expert_mode) -> boolean

Open the main dialog depending on the values t_expert_mode (expert_mode).

Parameters:
size_progress
headline
t_expert_mode
local pkg_name2ok_key (string pkg_name) -> string

Generate a key for a package without error.

Parameters:
pkg_name
local ok_key2pkg_name (string input) -> string

Decode the package name from a key for a package without error.

Parameters:
input
local boolean2string (boolean val) -> string

'translate' booleqan to string which can be shown in dialogs

Parameters:
val
local update_files (string pkg_name, list<map> pkg_data) -> string

Update the list of files, which failed during package verification returns contents of the richtext

Parameters:
pkg_name
pkg_data
local update (string pkg_name) -> boolean

Add a new package entry to the internal list and the displayed text. Update the process bar too. Afterwards call repaint define.

Parameters:
pkg_name
local show_complete_verify_list (string pkg_name) -> symbol

Show the complete ouptput of package verification (in the summary, it is limited to OSRPkgVerify::max_files entries)

Parameters:
pkg_name
local show_package_details (string pkg_name) -> symbol

popup with the summary of the package

Parameters:
pkg_name
local toggle_pause_button () -> symbol

Toggle the pause button between pause and continue.

global EvalUserInput (string input) -> symbol

Eval the user input.

Parameters:
input
global update_missing_packages (list<list> item_list, boolean check) -> list<list>

update the item list of 'missing_packages' with the ones selected to reinstall by user during verification

Parameters:
item_list
check
global Finish () -> void

Finish the dialog.