
functions
files
intro
|
|
sw_single
|
|
Provide installation on demand.
|
|
|
|
Imports
Includes
Variables
Functions
- AreAllPackagesInstalled (list(string) packages)
- DoInstallAndRemove (list(string) toinstall, list(string) toremove)
- EnsureTargetInit ()
- InstallAndRemove (list(string) require, list(string) conflict, string help)
- InstallAndRemoveButtons (list(string) require, list(string) conflict, string help, string continue_button, string cancel_button)
- IsAnyPackageInstalled (list(string) packages)
- IsPackageAvailable (string package)
- IsPackageInstalled (string package)
- RequireAndConflict (list(string) require, list(string) conflict, string help)
- RequireAndConflictButtons (list(string) require, list(string) conflict, string help, string continue_button, string cancel_button)
|
|
|
|
global target_initialized -> boolean
|
|
This will be local when converted to a Module::
Has Pkg::TargetInit run?
|
global source_initialized -> boolean
|
|
This will be local when converted to a Module::
Has Pkg::SourceStartCache run?
|
global EnsureTargetInit () -> void
|
|
This will be local when converted to a Module::
Ensure that Pkg:: calls work.
This may become superfluous.
|
global IsPackageAvailable (string package) -> boolean
|
|
Is a package available for installation?
- Parameters:
|
package |
package name, without version or .rpm suffix |
- Return value:
|
global IsPackageInstalled (string package) -> boolean
|
|
Is this package installed?
- Parameters:
|
package |
a bare package name |
- Return value:
|
global IsAnyPackageInstalled (list(string) packages) -> boolean
|
|
Is any of these packages installed?
- Parameters:
|
packages |
list of packages |
- Return value:
|
global AreAllPackagesInstalled (list(string) packages) -> boolean
|
|
Are all of of these packages installed?
- Parameters:
|
packages |
list of packages |
- Return value:
|
global DoInstallAndRemove (list(string) toinstall, list(string) toremove) -> boolean
|
|
Install required packages and remove conflicting packages.
- Parameters:
|
toinstall |
packages to install |
|
toremove |
pacakges to remove |
- Return value:
|
global InstallAndRemoveButtons (list(string) require, list(string) conflict, string help, string continue_button, string cancel_button) -> boolean
|
|
Install and remove packages.
The user is presented an explanation and asked to confirm the
changes. Then sw_single is called to do the job.
- Parameters:
|
require |
Required packages |
|
conflict |
Conflicting packages |
|
help |
Explanation (rich text). %1 and %2 represent a comma separated list of packages to be installed/removed |
|
continue_button |
Text which is going to be on the left-hand button (continue) |
|
cancel_button |
Text which is going to be on the right-hand button (cancel) |
- Return value:
|
global InstallAndRemove (list(string) require, list(string) conflict, string help) -> boolean
|
|
Install and remove packages.
The user is presented an explanation and asked to confirm the
changes. Then sw_single is called to do the job.
- Parameters:
|
require |
Required packages |
|
conflict |
Conflicting packages |
|
help |
Explanation (rich text). %1 and %2 represent a comma separated list of packages to be installed/removed |
- Return value:
|
global RequireAndConflictButtons (list(string) require, list(string) conflict, string help, string continue_button, string cancel_button) -> boolean
|
|
Ensure that all required packages are installed and no
conflicting packages are installed. If it is not the case, the
user is presented an explanation and asked to confirm the
changes. Then sw_single is called to do the job.
- Parameters:
|
require |
Required packages |
|
conflict |
Conflicting packages |
|
help |
Explanation (rich text). %1 and %2 represent a comma separated list of packages to be installed/removed |
|
continue_button |
Text which is going to be on the left-hand button (continue) |
|
cancel_button |
Text which is going to be on the right-hand button (cancel) |
- Return value:
|
global RequireAndConflict (list(string) require, list(string) conflict, string help) -> boolean
|
|
Ensure that all required packages are installed and no
conflicting packages are installed. If it is not the case, the
user is presented an explanation and asked to confirm the
changes. Then sw_single is called to do the job.
- Parameters:
|
require |
Required packages |
|
conflict |
Conflicting packages |
|
help |
Explanation (rich text). %1 and %2 represent a comma separated list of packages to be installed/removed |
- Return value:
|