yast2 |
modules/PackageSystem.ycp |
| Packages manipulation (system) |
|
|
|
The documentation is maintained at
.../docs/index.html.
Imports
- Label
- Mode
- PackageCallbacksInit
- Popup
- Popup
- Report
- Stage
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:
- Return value:
|
global Installed (string package) -> boolean
|
|
Is a package installed?
- Parameters:
- Return value:
|
global CheckAndInstallPackages (list<string> packages) -> boolean
|
|
Check if packages are installed
Install them if they are not and user approves installation
- Parameters:
- 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 |
|