260. Update

260.1. Summary of Module Globals

List of Global Functions

  • DeleteOldPackages - Returns whether old packages should be removed (defined in control file). True means - delete old RPMs when updating. (Functionality for FATE #301844).

  • Detach -

  • GetBaseSelections - Get all available base selections sorted in reverse order (highest ordered bases selection comes first).

  • GetProductName - Read product name and version for the old and new release. Fill installedVersion and updateVersion.

  • InitUpdate - Set initial values for variables that user can't change. They are defined in the control file.

  • IsProductSupportedForUpgrade - Returns whether the installed product is supported for upgrade. (Functionality for FATE #301844).

  • KeepInstalledPatches - Returns whether upgrade process should keep installed patches. 'true' means that patches will be kept, 'nil' is returned when the feature is not supported in the control file.

  • OnlyUpdateInstalled - Returns whether upgrade process should only update installed packages or also install new packages. True means - do not upgrade, only update packages. (Functionality for FATE #301844).

  • ProductsCompatible - Check if installed product and product to upgrade to are compatible

  • ProposeSelection - Propose a selection for the update and save it's name in Update::selected_selection.

  • Reset -

  • SilentlyDowngradePackages - Returns whether upgrade process should silently downgrade packages if needed. 'true' means that packages might be downgraded, 'nil' is returned when the feature is not supported in the control file.

  • fill_version_map -

List of Global Variables

    260.2. Global Functions

    260.2.1. DeleteOldPackages

    Returns whether old packages should be removed (defined in control file). True means - delete old RPMs when updating. (Functionality for FATE #301844).

    Return value

    • boolean

    260.2.2. Detach

    Return value

    • void

    260.2.3. GetBaseSelections

    Get all available base selections sorted in reverse order (highest ordered bases selection comes first).

    Return value

    • list<string>

    260.2.4. GetProductName

    Read product name and version for the old and new release. Fill installedVersion and updateVersion.

    Return value

    • boolean - success

    260.2.5. InitUpdate

    Set initial values for variables that user can't change. They are defined in the control file.

    Return value

    • void

    260.2.6. IsProductSupportedForUpgrade

    Returns whether the installed product is supported for upgrade. (Functionality for FATE #301844).

    Return value

    • boolean

    260.2.7. KeepInstalledPatches

    Returns whether upgrade process should keep installed patches. 'true' means that patches will be kept, 'nil' is returned when the feature is not supported in the control file.

    Return value

    • boolean

    260.2.8. OnlyUpdateInstalled

    Returns whether upgrade process should only update installed packages or also install new packages. True means - do not upgrade, only update packages. (Functionality for FATE #301844).

    Return value

    • boolean

    260.2.9. ProductsCompatible

    Check if installed product and product to upgrade to are compatible

    Return value

    • boolean - true if update is possible

    260.2.10. ProposeSelection

    Propose a selection for the update and save it's name in Update::selected_selection.

    Return value

    • void

    260.2.11. Reset

    Return value

    • void

    260.2.12. SilentlyDowngradePackages

    Returns whether upgrade process should silently downgrade packages if needed. 'true' means that packages might be downgraded, 'nil' is returned when the feature is not supported in the control file.

    Return value

    • boolean

    260.2.13. fill_version_map

    Function parameters

    • map <string, any>& data

    Return value

    • void

    260.3. Global Variables

    260.4. Module Requirements

    260.4.1. Module Imports

    • Installation
    • Mode
    • Packages
    • ProductFeatures
    • Stage
    • SuSERelease

    260.4.2. Module Includes