YaST2 Developers Documentation: Update.ycp

Update.ycp

  • Anas Nashif
  • Arvin Schnell
  • Lukas Ocilka
  • Purpose: Update module

This module has an unstable interface.

Imports

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

Global Functions

Info:

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

global OnlyUpdateInstalled () -> boolean

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).

global SilentlyDowngradePackages () -> boolean

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.

global IsProductSupportedForUpgrade () -> boolean

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

global ProductsCompatible () -> boolean

Check if installed product and product to upgrade to are compatible

Return value:
true if update is possible
global InitUpdate () -> void

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

global DropObsoletePackages () -> void

Drops packages defined in control file (string) software->dropped_packages

See
bnc #300540
global Reset () -> void

global fill_version_map (map <string, any>& data) -> void

Parameters:
data
global GetProductName () -> boolean

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

Return value:
success
global GetBaseSelections () -> list<string>

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

global ProposeSelection () -> void

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

global Detach () -> void