YaST2 Developers Documentation: yast2

yast2

modules/PackageLock.ycp
Packages manipulation (system)
  • Martin Vidner

This module has an unstable interface.

This should be used everywhere before Pkg is first used. #160319

Imports

  • Label
  • PackageKit
  • Popup

Global Functions

Local Functions

local AskPackageKit () -> boolean

Ask whether to quit PackageKit if it is running

Return value:
true if PackageKit was asked to quit
global Check () -> boolean

Tries to acquire the packager (zypp) lock. Reports an error if another process has the lock already. Will only report once even if called multiple times.

Return value:
true if we can continue
global Connect (boolean show_continue_button) -> map<string,any>

Tries to acquire the packager (zypp) lock. Reports an error if another process has the lock already. Will only report once even if called multiple times.

Parameters:
show_continue_button show option to continue without access
Return value:
with lock status and user reaction