| Trees | Indices | Help |
|
|---|
|
|
object --+
|
dbapi
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
_category_re = re.compile(r'
|
|||
_categories = Nonehash(x) |
|||
_use_mutable = False
|
|||
_known_keys =
|
|||
_pkg_str_aux_keys =
|
|||
|
|||
|
categories Use self.cp_all() to generate a category list. |
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Use this to sort self.cp_list() results in ascending order. It sorts in place and returns None. |
Return all CPVs in the db
Args:
None
Returns:
A list of Strings, 1 per CPV
This function relies on a subclass implementing cp_all, this is why the hasattr is there
|
Implement this in a child class
Args
None
Returns:
A list of strings 1 per CP in the datastore
|
Return the metadata keys in mylist for mycpv
Args:
mycpv - "sys-apps/foo-1.0"
mylist - ["SLOT","DEPEND","HOMEPAGE"]
myrepo - The repository name.
Returns:
a list of results, in order of keys in mylist, such as:
["0",">=sys-libs/bar-1.0","http://www.foo.com"] or [] if mycpv not found'
|
Args:
cpv - "sys-apps/foo-1.0"
metadata_updates = { key : newvalue }
Returns:
None
|
Given a dependency, try to find packages that match
Args:
origdep - Depend atom
use_cache - Boolean indicating if we should use the cache or not
NOTE: Do we ever not want the cache?
Returns:
a list of packages that match origdep
|
This is used to contruct _pkg_str instances on-demand during matching. If cpv is a _pkg_str instance with slot attribute, then simply return it. Otherwise, fetch metadata and construct a _pkg_str instance. This may raise KeyError or InvalidData. |
1) Check for required IUSE intersection (need implicit IUSE here). 2) Check enabled/disabled flag states. |
Update metadata of all packages for package moves.
|
This function takes a sequence:
Args:
mylist: a sequence of (atom, originalslot, newslot)
repo_match: callable that takes single repo_name argument
and returns True if the update should be applied
Returns:
The number of slotmoves this function did
|
|
|||
_known_keys
|
_pkg_str_aux_keys
|
|
|||
categoriesUse self.cp_all() to generate a category list. Mutable instances can delete the self._categories attribute in cases when the cached categories become invalid and need to be regenerated.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat May 18 16:59:27 2013 | http://epydoc.sourceforge.net |