YaST2 Developers Documentation: sw_single



functions
files
intro

sw_single

Provide installation on demand.

Imports

  • PackageCallbacks
  • Wizard

Includes

  • ui/common_messages.ycp

Variables

Functions

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:
true/false

global IsPackageInstalled (string package) -> boolean

Is this package installed?

Parameters:
package a bare package name
Return value:
true/false

global IsAnyPackageInstalled (list(string) packages) -> boolean

Is any of these packages installed?

Parameters:
packages list of packages
Return value:
true/false

global AreAllPackagesInstalled (list(string) packages) -> boolean

Are all of of these packages installed?

Parameters:
packages list of packages
Return value:
true/false

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:
success?

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:
installation successful?

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:
installation successful?

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:
installation successful?

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:
installation successful?

YaST2 Developers Documentation