YaST2 base package |
modules/Crash.ycp |
Handling crashes and recovery of other modules | |
|
|
This module has an unstable interface. |
Imports
Global VariablesGlobal Functions
Local Variables |
local
all_failed
->
list<string>
All operations that failed when were running last time
local
last_failed
->
list<string>
All operations that were the last started when crashed when running last time
local
last_done
->
string
Last successfully finished operation
local
this_run_active
->
list<string>
List of operations which are active during this YaST2 session
global
filename
->
string
Filename of file storing crash settings
global
Read ()
->
void
Read settings from data file to variables
global
Write ()
->
void
Write data stored in variables to data files
global
Run (string op)
->
void
Start operation
- Parameters:
-
op string operation to start
global
Finish (string op)
->
void
Finish operation
- Parameters:
-
op string operation to finish
global
Failed (string op)
->
boolean
Check whether operation failed
- Parameters:
-
op string operation to check
- Return value:
-
true if yes
global
FailedLast (string op)
->
boolean
Check whether operation was last started when failed
- Parameters:
-
op string operation to check
- Return value:
-
true if yes
global
LastFinished ()
->
string
Get last finished operation
- Return value:
-
operation name
global
AskRun (string op, string question)
->
boolean
Check whether operation was last run in moment of last fail. Return whether operation shall be run If not, return true (no reason to think that operation is unsafe), Otherwise ask user
- Parameters:
-
op string operation name question string question to ask when was unsuccessfull last time
- Return value:
-
true if operation shall be started