Package portage :: Package dbapi :: Module porttree :: Class FetchlistDict
[hide private]

Class FetchlistDict

source code

            object --+    
                     |    
cache.mappings.Mapping --+
                         |
                        FetchlistDict

This provide a mapping interface to retrieve fetch lists. It's used to allow portage.manifest.Manifest to access fetch lists via a standard mapping interface rather than use the dbapi directly.

Instance Methods [hide private]
 
__init__(self, pkgdir, settings, mydbapi)
pkgdir is a directory containing ebuilds and settings is passed into portdbapi.getfetchlist for __getitem__ calls.
source code
 
__getitem__(self, pkg_key)
Returns the complete fetch list for a given package.
source code
 
__contains__(self, cpv) source code
 
has_key(self, pkg_key)
Returns true if the given package exists within pkgdir.
source code
 
__iter__(self) source code
 
__len__(self)
This needs to be implemented in order to avoid infinite recursion in some cases.
source code
 
keys(self)
Returns keys for all packages within pkgdir
source code

Inherited from cache.mappings.Mapping: __repr__, get, items, iteritems, iterkeys, itervalues, values

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pkgdir, settings, mydbapi)
(Constructor)

source code 

pkgdir is a directory containing ebuilds and settings is passed into portdbapi.getfetchlist for __getitem__ calls.

Overrides: object.__init__

__contains__(self, cpv)
(In operator)

source code 
Overrides: cache.mappings.Mapping.__contains__

__iter__(self)

source code 
Overrides: cache.mappings.Mapping.__iter__

__len__(self)
(Length operator)

source code 

This needs to be implemented in order to avoid infinite recursion in some cases.

Overrides: cache.mappings.Mapping.__len__

keys(self)

source code 

Returns keys for all packages within pkgdir

Overrides: cache.mappings.Mapping.__iter__