| Home | Trees | Indices | Help |
|
|---|
|
|
Base class for Source Package Manager plugins
| Instance Methods | |||
|
|||
| list |
|
||
| string |
|
||
| string |
|
||
| string or None |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
| list |
|
||
| list |
|
||
| dict |
|
||
| list |
|
||
| dict |
|
||
|
|||
| string |
|
||
| list |
|
||
|
|||
| list |
|
||
|
|||
|
|||
| string or list or None |
|
||
| string or list or None |
|
||
| None |
|
||
| dict |
|
||
| bool |
|
||
| bool |
|
||
| dict |
|
||
| dict |
|
||
| list |
|
||
| list |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| list |
|
||
| dict |
|
||
| int |
|
||
| int |
|
||
| string |
|
||
| dict |
|
||
| bool |
|
||
|
|||
| int |
|
||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Static Methods | |||
|
|||
| list |
|
||
| dict |
|
||
| dict |
|
||
| tuple |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
|
Inherited from |
|||
| Class Variables | |
BASE_PLUGIN_API_VERSION = 3
|
|
PLUGIN_API_VERSION = -1
|
|
SUPPORTED_MATCH_TYPES =
|
|
PLUGIN_NAME = Nonehash(x) |
|
IS_DEFAULT = False
|
|
| Properties | |
|
Inherited from |
| Method Details |
Source Package Manager Plugin singleton method. This method must be reimplemented by subclasses.
|
Return a list of package metadata keys available.
|
Return a list of available and valid package build phases. Default value is ["setup", "preinstall", "postinstall", "preremove", "postremove"]
|
Return a map of phases names between Entropy (as keys) and Source Package Manager.
|
Return a map composed by configuration file identifiers and their path on disk. These configuration files are related to Source Package Manager.
|
Return Source Package Manager cache directory path.
|
Return package metadata referenced by "key" argument from available packages repositories.
|
Return ChangeLog content for given package.
|
Return build script path for given package looking through available packages repositories.
|
Return build script path for given package looking into installed packages repository.
|
Return package metadata referenced by "key" argument from installed packages repository.
|
Return list of core (system) packages. Core packages are usually consider vital for basic system operativity.
|
Return list of package categories in available packages repositories.
|
Return metadata for given package category containing description in all the available languages. Data is returned in dict form, locale names as key, description text as value.
|
Return a list of packages affected by given security property argument. Valid security_property values are: affected, new, all.
|
Return Source Package Manager package security advisory metadata for given security advisory identifier.
|
Return Source Package Manager setting referenced by "key"
|
Return path to file containing list (one per line) of packages installed by user (in Portage world, this is the world file).
|
Return a list of paths (either directories or files) whose are protected from direct merge requiring user approval.
|
Return list of download mirror URLs for given mirror name
|
Log message string to logfile.
|
Match a package looking through available packages repositories using the given match term argument (package) and match type (validity defined by subclasses).
|
Match a package looking through installed packages repository using the given match term argument (package).
|
Generate a package tarball file for given package, from running system. All the information is recomposed from system.
|
Extract Source Package Manager package metadata from given file.
|
WARNING: this is an Entropy Server functionality. Enable compile options (also known as USE flags) for package. Compile options are intended to be features that package can expose to other packages or directly to user.
|
WARNING: this is an Entropy Server functionality. Disable compile options (also known as USE flags) for package. Compile options are intended to be features that package can expose to other packages or directly to user.
|
WARNING: this is an Entropy Server functionality. Return currently configured compile options (also known as USE flags) for given package. There can be different kinds of compile options so a dictionary should be returned with compile options identifier as key and list of options as value. This method looks through available packages repositories.
|
Return currently configured compile options (also known as USE flags) for given package. There can be different kinds of compile options so a dictionary should be returned with compile options identifier as key and list of options as value. This method looks into installed packages repository.
|
Return list of files/directories owned by package.
|
Return list of packages found in available repositories. Extra "filtering" arguments can be passed like "categories", which will make this method returning only packages found in given category list and "filter_reinstalls" which will actually filter out packages already installed (with no updates nor downgrades available).
To Do: improve method, move filter_reinstalls to another function? |
Compile given packages using given compile options. Extra compiler options can be set via environmental variables (CFLAGS, LDFLAGS, etc). By default, this function writes to stdout and can potentially interact with user via stdin/stdout/stderr. By default, when build_only=False, compiled packages are installed onto the running system.
|
Compile given packages using given compile options. Extra compiler options can be set via environmental variables (CFLAGS, LDFLAGS, etc). By default, this function writes to stdout and can potentially interact with user via stdin/stdout/stderr. By default, when build_only=False, compiled packages are installed onto the running system.
|
Print build environment info to stdout.
|
Hook used by Entropy Client and Entropy Server to ask Source Package Manager to update /etc/profile* and other environment settings around. Since this is part of the Source Package Manager metaphor it must stay in this class.
|
Return list of packages found in installed packages repository. Extra "filtering" arguments can be passed like "categories", which will make this method returning only packages found in given category list.
|
Package sets are groups of packages meant to ease user installation and removal of large amount of applications or libraries. The difference between package groups is that sets can be referenced anywhere inside Entropy, while the former is just a simple way to group pacakge categories, usually too hard to understand (for eg. "sys-apps" or "app-misc", where user has no clue about the meaning of these). Third party implementations of SPM can just return empty data if this feature is not wanted or implementable.
|
Assign a new Unique Identifier to installed package and return it.
|
This is the bridge between Entropy package repository and its Source Package Manager backend. Given an EntropyRepository instance and its package identifier (which is available inside it). Return the package Unique Identifier that is bound to it, if available, otherwise return None. This function is used by EntropyRepository to regenerate Entropy<->Spm package bindings.
|
This function should be able to convert an Entropy package name (atom) to a Source Package Manager one.
|
Return list of packages owning provided list of paths. A dictionary is returned containing package name as key and list of matched paths as value.
|
Execute Source Package Manager based QA tests on Entropy package files. This method can be used to test Entropy produced packages to make sure that they are fine on this side too. It is called by Entropy QA module (entropy.qa).
|
Append Source Package Manager metadata bits to an Entropy package, known its name and path.
|
WARNING: this is an Entropy Server functionality. Execute the synchronization (if needed) of Source Package Manager package names with Entropy ones, stored inside the passed EntropyRepository instance (entropy_repository) referenced by an unique identifier (entropy_repository_id) for the given Entropy packages branch (entropy_branch). This method must also take care of the Entropy package names update file returned by Entropy server instance (entropy_server) method "get_local_database_treeupdates_file". If your Source Package Manager packages are subject to name changes, you must implement this method to effectively keep Entropy aligned with it.
|
Execute Source Package Manager package phase (postinstall, preinstall, preremove, postremove, etc).
|
Add package installed by Entropy to SPM database too.
"package_metadata" is a dictionary featuring the following (relevant)
keys:
['accept_license', 'imagedir', 'xpakpath', 'slot', 'pkgdbpath',
'versiontag', 'version', 'xpakstatus', 'unpackdir', 'revision',
'category', 'repository', 'xpakdir', 'name', 'install_source',
]
@param package_metadata: Entropy package metadata
@type package_metadata: dict
@return: SPM installed package UID or -1
@rtype: int
|
Remove installed package from SPM database.
"package_metadata" is a dictionary featuring the following (relevant)
keys:
['accept_license', 'imagedir', 'xpakpath', 'slot', 'pkgdbpath',
'versiontag', 'version', 'xpakstatus', 'unpackdir', 'revision',
'category', 'repository', 'xpakdir', 'name', 'install_source',
'removeatom'
]
@param package_metadata: Entropy package metadata
@type package_metadata: dict
@return: execution status
@rtype: int
|
This function is called by Entropy Client when updating Entropy repositories. Place here all your Source Package Manager bullshit and, remember to return an int form execution status.
|
This function is called by Entropy Client during package metadata setup. It is intended to be used to inject additional metadata (that would be used afterwards in other entropy_install_* hooks) to entropy package install metadata. Note: for performance reasons, this is a static method !
|
This function is called by Entropy Client during package installation, unpack phase. It is intended to be used to extract, if required, Source Package Manager metadata from Entropy packages useful for installing package into Source Package Manager plugin too. For example, PortagePlugin uses this hook to extract xpak metadata from entropy package files and setup Portage directories. Note: for performance reasons, this is a static method !
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Dec 13 00:16:25 2009 | http://epydoc.sourceforge.net |