Package entropy :: Package client :: Module misc

Module misc

source code


Author: Fabio Erculiani <[email protected]>

Contact: [email protected]

Copyright: Fabio Erculiani

License: GPL-2

Entropy Package Manager Client Miscellaneous Interface.

Classes
  ConfigurationFiles
Configuration Files Updates descriptor.
  ConfigurationUpdates
Entropy Configuration File Updates management class.
Functions
 
sharedinstlock(method)
Decorator that acquires the Installed Packages Repository lock in shared mode and calls the wrapped function with an extra argument (the Installed Packages Repository object instance).
source code
 
exclusiveinstlock(method)
Decorator that acquires the Installed Packages Repository lock in exclusive mode and calls the wrapped function with an extra argument (the Installed Packages Repository object instance).
source code
Variables
  __package__ = 'entropy.client'
Function Details

sharedinstlock(method)

source code 

Decorator that acquires the Installed Packages Repository lock in shared mode and calls the wrapped function with an extra argument (the Installed Packages Repository object instance).

This decorator expects that "self" has an installed_repository() method that returns the Installed Packages Repository instance.

exclusiveinstlock(method)

source code 

Decorator that acquires the Installed Packages Repository lock in exclusive mode and calls the wrapped function with an extra argument (the Installed Packages Repository object instance).

This decorator expects that "self" has an installed_repository() method that returns the Installed Packages Repository instance.