YaST2 Developers Documentation: PackageCallbacks.ycp

PackageCallbacks.ycp

  • Gabriele Strattner
  • Klaus Kaempf
  • Arvin Schnell
  • Purpose: provides the default Callbacks for Pkg::

This module has an unstable interface.

Imports

  • CommandLine
  • Directory
  • FileUtils
  • Icon
  • Installation
  • Label
  • Mode
  • Popup
  • Progress
  • Report
  • SignatureCheckCallbacks
  • String
  • URL
  • Wizard

Global Functions

global EnableAsterixPackage (boolean f) -> boolean

Enable or disable StartPackage, ProgressPackage and DonePackage callbacks, but only the progress bar and not the final error message. Returns old value.

Parameters:
f
global StartPackage (string name, string location, string summary, integer installsize, boolean is_delete) -> void

At start of package install.

Parameters:
name
location
summary
installsize
is_delete
global ProgressPackage (integer percent) -> boolean

During package install.

Parameters:
percent
global DonePackage (integer error, string reason) -> string

After package install.

Parameters:
error
reason
global SourceChange (integer source, integer medianr) -> void

dummy repository change callback, see SlideShowCallbacks for the real one

Parameters:
source
medianr
global StartScanDb () -> void

Callback for start RPM DB scan event

global ProgressScanDb (integer value) -> boolean

Callback for RPM DB scan progress

Parameters:
value
global ErrorScanDb (integer error, string description) -> string

Callback for error handling during RPM DB scan

Parameters:
error
description
global DoneScanDb (integer error, string description) -> void

Callback for finish RPM DB scan event

Parameters:
error
description
global ProcessStart (string task, list<string> stages, string help) -> void

Hanler for ProcessStart callback - handle start of a package manager process

Parameters:
task Decription of the task
stages Descriptions of the stages
help Help text describing the process
global ProcessProgress (integer percent) -> boolean

Hander for ProcessProgress callback - report total progress

Parameters:
percent Total progress in percent
global ProcessNextStage () -> void

Hander for ProcessNextStage callback - the current stage has been finished

global ProcessDone () -> void

Hander for ProcessDone callback - the process has been finished

global SetMediaCallbacks () -> void

Register callbacks for media change

global InitPackageCallbacks () -> void

Register package manager callbacks

global PackageCallbacks () -> void

constructor