YaST2 Developers Documentation: sw_single.ycp

sw_single.ycp

  • Gabriele Strattner (gs@suse.de)
  • Klaus Kaempf
  • Purpose: contains dialog loop for workflows:
  • "Install/Remove software"

This module has an unstable interface.

Note: sw_single accepts a map parameter: $[ "dialog_type" : symbol, "repo_mgmt" : boolean ] "dialog_type" can be `patternSelector, `searchMode, `summaryMode "repo_mgmt" enables "Repositories" -> "Repository Manager..." menu option

Imports

  • CommandLine
  • Confirm
  • Directory
  • FileUtils
  • GetInstArgs
  • Installation
  • Kernel
  • Mode
  • PackageCallbacks
  • PackageInstallation
  • PackageLock
  • PackageSlideShow
  • PackageSystem
  • Packages
  • PackagesUI
  • Popup
  • Progress
  • Report
  • SlideShow
  • SlideShowCallbacks
  • String
  • URL
  • Wizard

Local Functions

local VersionALtB (string a_version, string b_version) -> boolean

Function checks two versions of installed rpm and decides whether the second one is newer than the first one. This function ignores non-numerical values in versions. Version and Release parts are merged! FIXME make a binding to librpm.

Parameters:
a_version
b_version
Return value:
true if the second one is newer than the first one
local CanBeUpdated (string package) -> boolean

Check if there is an uninstalled package of the same name with a higher version. Otherwise we would forcefully reinstall it. #222757#c9

Parameters:
package