| Home | Trees | Indices | Help |
|
|---|
|
|
Base class for Source Package Manager plugins
| Instance Methods | |||
|
|||
| int |
|
||
|
|||
| bool |
|
||
| bool |
|
||
| int |
|
||
| dict |
|
||
| None |
|
||
| string |
|
||
| list |
|
||
| string |
|
||
| dict |
|
||
| list |
|
||
| string |
|
||
| list |
|
||
| list |
|
||
|
|||
| string |
|
||
| list |
|
||
| dict |
|
||
| string or None |
|
||
| dict |
|
||
| string |
|
||
| dict |
|
||
| list |
|
||
| dict |
|
||
| list |
|
||
|
|||
| list |
|
||
| string |
|
||
|
|||
|
|||
| string or list or None |
|
||
| string or list or None |
|
||
| list |
|
||
| list |
|
||
|
|||
|
|||
| dict |
|
||
|
Inherited from Inherited from |
|||
| Static Methods | |||
| int |
|
||
| int |
|
||
|
|||
|
Inherited from |
|||
| Class Variables | |
BASE_PLUGIN_API_VERSION = 0
|
|
PLUGIN_API_VERSION = -1
|
|
SUPPORTED_MATCH_TYPES =
|
|
| Properties | |
|
Inherited from |
| Method Details |
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
|
Assign a new Unique Identifier to installed package and return it.
|
Configure installed package. Some SPM require users to do manual
stuff on packages.
"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
|
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. 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.
|
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 !
|
Execute Source Package Manager package phase (postinstall, preinstall, preremove, postremove, etc).
|
Extract Source Package Manager package metadata from given file.
|
Generate a package tarball file for given package, from running system. All the information is recomposed from system.
|
Return Source Package Manager cache directory path.
|
Return list of download mirror URLs for given mirror name
|
Return build script path for given package looking into installed packages repository.
|
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 into installed packages repository.
|
Return list of files/directories owned by package.
|
Return package metadata referenced by "key" argument from installed packages repository.
|
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.
|
Return a list of paths (either directories or files) whose are protected from direct merge requiring user approval.
|
Return build script path for given package looking through available packages repositories.
|
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 ChangeLog content for given package.
|
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 package metadata referenced by "key" argument from available packages repositories.
|
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.
|
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? |
Return Source Package Manager package security advisory metadata for given security advisory identifier.
|
Return a list of packages affected by given security property argument. Valid security_property values are: affected, new, all.
|
Return Source Package Manager setting referenced by "key"
|
Return list of core (system) packages. Core packages are usually consider vital for basic system operativity.
|
Return path to file containing list (one per line) of packages installed by user (in Portage world, this is the world file).
|
Source Package Manager Plugin singleton method. This method must be reimplemented by subclasses. At this stage, you should also consider to tweak etpConst['spm'] content (importing etpConst from entropy.const).
|
Log message string to logfile.
|
Match a package looking through installed packages repository using the given match term argument (package).
|
Match a package looking through available packages repositories using the given match term argument (package) and match type (validity defined 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"]
|
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
|
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.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 4 11:50:16 2009 | http://epydoc.sourceforge.net |