YaST2 Developers Documentation: yast2



functions
files
intro

yast2

modules/PackageSystem.ycp
Packages manipulation (system)

Imports

  • Label
  • Mode
  • PackageCallbacksInit
  • Popup
  • Popup

Includes

  • packages/common.ycp

Local Variables

local last_op_canceled -> boolean

Was last operation canceled? Used to enhance the exit status to distinguish between package installation fail and installation canceled by user, as in the second case doesn't make much sense to display any error Is set to true when user canceled package installation, from PackageSystem::* functions

local target_initialized -> boolean

Has Pkg::TargetInit run?

local source_initialized -> boolean

Has Pkg::SourceStartCache run?

Info:

Ensure that Pkg:: calls work. This may become superfluous.

Info:

Ensure that Pkg:: calls working with the installation sources work

Info:

Is a package available?

Return value:
true if yes

Info:

Is a package installed?

Return value:
true if yes

YaST2 Developers Documentation