Package entropy :: Package client :: Package interfaces :: Package package :: Package actions :: Module action :: Class PackageAction

Class PackageAction

source code


Base PackageAction object. Do not instantiate this and its subclasses directly but rather use the PackageActionFactory.

Instance Methods
 
__init__(self, entropy_client, package_match, opts=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
atom(self)
Return the package atom string of this object.
source code
 
finalize(self)
Finalize the object, release all its resources.
source code
 
metadata(self)
Return the package metadata dict object for manipulation.
source code
 
package_id(self)
Return the package identifier of this object.
source code
entropy.misc.FlockFile
path_lock(self, path)
Given a path, return a FlockFile object that can be used for inter-process synchronization purposes.
source code
 
repository_id(self)
Return the repository identifier of this object.
source code
 
set_xterm_header(self, header)
Set the xterm terminal header text that will prefix the activity title.
source code
 
setup(self)
Setup the action metadata.
source code
 
start(self)
Execute the action.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods
 
get_standard_fetch_disk_path(cls, download)
Return standard path where package is going to be downloaded.
source code
 
splitdebug_enabled(cls, entropy_client, pkg_match)
Return whether splitdebug is enabled for package.
source code
Class Variables
  NAME = None
hash(x)
Properties

Inherited from object: __class__

Method Details

__init__(self, entropy_client, package_match, opts=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

finalize(self)

source code 

Finalize the object, release all its resources. Subclasses must call this method in their overridden ones.

get_standard_fetch_disk_path(cls, download)
Class Method

source code 

Return standard path where package is going to be downloaded. "download" argument passed must come from EntropyRepository.retrieveDownloadURL()

path_lock(self, path)

source code 

Given a path, return a FlockFile object that can be used for inter-process synchronization purposes.

Parameters:
  • path (string) - path to protect with a file lock
Returns: entropy.misc.FlockFile
a FlockFile object instance

set_xterm_header(self, header)

source code 

Set the xterm terminal header text that will prefix the activity title.

Parameters:
  • header (string) - the xterm header title

setup(self)

source code 

Setup the action metadata. There is no need to call this directly, unless you want to pre-generate the whole PackageAction metadata. This method will be called by start() anyway.

start(self)

source code 

Execute the action. Return an exit status.