YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • CommandLine
  • Kernel
  • Label
  • Mode
  • PackageCallbacks
  • PackageLock
  • PackagesUI
  • Popup
  • Report
  • Stage

Includes

  • packages/common.ycp

Global Functions

Local Variables

Info:

File: modules/PackageSystem.ycp Package: yast2 Summary: Packages manipulation (system) Authors: Martin Vidner Michal Svec Flags: Stable

$Id$

local last_op_canceled -> boolean

Was last operation canceled?

local target_initialized -> boolean

Has Pkg::TargetInit run?

local source_initialized -> boolean

Has Pkg::SourceStartCache run?

global EnsureTargetInit () -> void

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

global EnsureSourceInit () -> void

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

global Available (string package) -> boolean

Is a package available?

Parameters:
package
Return value:
true if yes (nil = no package source available)
global Installed (string package) -> boolean

Is a package provided in the system? Is there any installed package providing 'package'?

Parameters:
package
Return value:
true if yes
global PackageInstalled (string package) -> boolean

Is a package installed? Checks only the package name in contrast to Installed() function.

Parameters:
package
Return value:
true if yes
global PackageAvailable (string package) -> boolean

Is a package available? Checks only package name, not list of provides.

Parameters:
package
Return value:
true if yes (nil = no package source available)
global CheckAndInstallPackages (list<string> packages) -> boolean

Check if packages are installed

Install them if they are not and user approves installation

Parameters:
packages
Return value:
true if installation succeeded or packages were installed, false otherwise
global CheckAndInstallPackagesInteractive (list<string> packages) -> boolean

Check if packages are installed

Install them if they are not and user approves installation If installation fails (or wasn't allowed), ask user if he wants to continue

Parameters:
packages a list of packages to check (and install)
Return value:
true if installation succeeded, packages were installed before or user decided to continue, false otherwise