Package _emerge :: Module depgraph :: Class _dep_check_composite_db
[hide private]

Class _dep_check_composite_db

source code

         object --+    
                  |    
portage.dbapi.dbapi --+
                      |
                     _dep_check_composite_db

A dbapi-like interface that is optimized for use in dep_check() calls. This is built on top of the existing depgraph package selection logic. Some packages that have been added to the graph may be masked from this view in order to influence the atom preference selection that occurs via dep_check().

Instance Methods [hide private]
 
__init__(self, depgraph, root)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_clear_cache(self) source code
 
cp_list(self, cp)
Emulate cp_list just so it can be used to check for existence of new-style virtuals.
source code
 
match_pkgs(self, atom) source code
 
_visible(self, pkg, atom_set, avoid_slot_conflict=True, probe_virt_update=True) source code
 
_iter_virt_update(self, pkg, atom_set) source code
 
_have_virt_update(self, pkg, atom_set) source code
 
aux_get(self, cpv, wants)
Return the metadata keys in mylist for mycpv Args: mycpv - "sys-apps/foo-1.0" mylist - ["SLOT","DEPEND","HOMEPAGE"] myrepo - The repository name.
source code
 
match(self, atom)
Given a dependency, try to find packages that match...
source code

Inherited from portage.dbapi.dbapi: aux_update, close_caches, cp_all, cpv_all, invalidentry, move_slot_ent, update_ents

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

Static Methods [hide private]

Inherited from portage.dbapi.dbapi (private): _cmp_cpv, _cpv_sort_ascending

Class Variables [hide private]
Properties [hide private]

Inherited from portage.dbapi.dbapi: categories

Inherited from object: __class__

Method Details [hide private]

__init__(self, depgraph, root)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

cp_list(self, cp)

source code 

Emulate cp_list just so it can be used to check for existence of new-style virtuals. Since it's a waste of time to return more than one cpv for this use case, a maximum of one cpv will be returned.

Overrides: portage.dbapi.dbapi.cp_list

aux_get(self, cpv, wants)

source code 
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'

Overrides: portage.dbapi.dbapi.aux_get
(inherited documentation)

match(self, atom)

source code 
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

Overrides: portage.dbapi.dbapi.match
(inherited documentation)