Unknown YCP Module |
This module has an unstable interface. |
Imports
Global Functions |
Info:
File: include/printer/Printerlib.ycp
Package: Configuration of printer
Summary: Common functionality
Authors: Michal Zugec
global
ExecuteBashCommand (string bash_commandline)
->
boolean
Wrapper for SCR::Execute to execute a bash command to increase verbosity via y2milestone. It reports the command via y2milestone in any case and it reports exit code, stdout and stderr via y2milestone in case of non-zero exit code.
- Parameters:
-
bash_commandline string of the bash command to be executed
- Return value:
-
true on success
global
TestAndInstallPackage (string package_name, string action)
->
boolean
Test whether the package is installed (calls 'rpm -q package_name') or test whether the package is available to be installed (Package::Available) and if yes then install it (Package::Install) if it is not yet installed or remove the package (Package::Remove) if it is installed.
- Parameters:
-
package_name string of the package name action string of the action to be done (installed or install or remove).
- Return value:
-
true on success