199. PackageSystem

Packages manipulation (system)

199.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    199.2. Global Functions

    199.2.1. Available

    Is a package available?

    Function parameters

    • string package

    Return value

    • boolean - true if yes (nil = no package source available)

    199.2.2. CheckAndInstallPackages

    Check if packages are installed

    Function parameters

    • list<string> packages

    Return value

    • boolean - true if installation succeeded or packages were installed, false otherwise

    199.2.3. CheckAndInstallPackagesInteractive

    Check if packages are installed

    Function parameters

    • list<string> packages

    Return value

    • boolean - true if installation succeeded, packages were installed before or user decided to continue, false otherwise

    199.2.4. EnsureSourceInit

    Ensure that Pkg:: calls working with the installation sources work

    Return value

    • void

    199.2.5. EnsureTargetInit

    Ensure that Pkg:: calls work. This may become superfluous.

    Return value

    • void

    199.2.6. Installed

    Is a package provided in the system? Is there any installed package providing 'package'?

    Function parameters

    • string package

    Return value

    • boolean - true if yes

    199.2.7. PackageAvailable

    Is a package available? Checks only package name, not list of provides.

    Function parameters

    • string package

    Return value

    • boolean - true if yes (nil = no package source available)

    199.2.8. PackageInstalled

    Is a package installed? Checks only the package name in contrast to Installed() function.

    Function parameters

    • string package

    Return value

    • boolean - true if yes

    199.3. Global Variables

    199.4. Module Requirements

    199.4.1. Module Imports

    • CommandLine
    • Label
    • Mode
    • PackageCallbacks
    • PackageLock
    • Popup
    • Report
    • Stage

    199.4.2. Module Includes

    • packages/common.ycp