| Trees | Indices | Help |
|
|---|
|
|
object --+
|
portage.cache.mappings.Mapping --+
|
portage.cache.mappings.MutableMapping --+
|
BlockerCache
This caches blockers of installed packages so that dep_check does not
have to be done for every single installed package on every invocation of
emerge. The cache is invalidated whenever it is detected that something
has changed that might alter the results of dep_check() calls:
1) the set of installed packages (including COUNTER) has changed
|
|||
| BlockerData | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| BlockerData |
|
||
|
Inherited from Inherited from Inherited from |
|||
|
|||
_cache_threshold = 5
|
|||
|
|||
|
Inherited from |
|||
|
|||
myroot is ignored in favour of EROOT
|
If the current user has permission and the internal blocker cache
been updated, save it to disk and mark it unmodified. This is called
by emerge after it has proccessed blockers for all installed packages.
Currently, the cache is only written if the user has superuser
privileges (since that's required to obtain a lock), but all users
have read access and benefit from faster blocker lookups (as long as
the entire cache is still valid). The cache is stored as a pickled
dict object with the following format:
{
version : "1",
"blockers" : {cpv1:(counter,(atom1, atom2...)), cpv2...},
}
|
Update the cache and mark it as modified for a future call to self.flush().
|
|
This needs to be implemented in order to avoid infinite recursion in some cases.
|
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat May 18 16:59:26 2013 | http://epydoc.sourceforge.net |