yast2 |
modules/PackageSystem.ycp |
Packages manipulation (system) | |
|
|
This module has an unstable interface. |
The documentation is maintained at
.../docs/index.html.
Imports
Includes
Global Functions
Local Variables |
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
global
Installed (string package)
->
boolean
Is a package installed?
- Parameters:
-
package
- Return value:
-
true if yes
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