| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
This error is triggered by corrupt cache entries.
|
|
|
|
|
|
|
| |
Never return INHERITED, since portdbapi.aux_get() will generate it
automatically from _eclasses_, and we want to omit it in comparisons
between cache entries like those that egencache uses to avoid redundant
writes (see commit 0e120da008c9d0d41c9372c81145c6e153028a6d).
|
|
|
|
|
|
|
| |
This fixes volatile cache validation that did not get fixed in commit
a63c163a50bf8a4e5ca8673cd8bebae29c36643a. Now all volatile cache
problems that have been introduced since commit
2ed1cb53cc4158af08c22d466b15b9a9a7767212 should be fixed.
|
|
|
|
|
|
|
|
|
|
| |
Specifically, the cache can use any portage supported checksum method,
or use the standard mtime approach. In addition, support controlling
whether or not paths are stored, and generally try to restore some
of the centralization/encapsulation that was in place originally.
(cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247)
Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
|
|
|
|
| |
Those who wanted it have decided to use a different approach.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By authorative, this means "the cache is accurate; skip validation". While
a useful hint for a slight speedup in validation, the true gain is for
repositories that are distributed in a fashion that doesn't preserve mtime;
git primarily. Setting authorative-cache = true results in portage
skipping mtime validation checks for the bundled cache, allowing
for git vcs based repos to distribute a cache.
BUG=chromium-os:21049
TEST=dump a cache into metadata/cache, touch it to now, set layout.conf
to authorative-cache=true, verify it doesn't generate cache entries
for that repo.
Change-Id: I92423e679bc171d2411a18d6d3ac22e8ef457753
|
| |
|
|
|
|
|
|
| |
both python 2.x and 3.x.
svn path=/main/trunk/; revision=14382
|
|
|
|
| |
svn path=/main/trunk/; revision=14371
|
|
|
|
| |
svn path=/main/trunk/; revision=14343
|
|
|
|
|
|
|
|
| |
dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3.
(2to3-3.1 -f dict -nw ${FILES})
svn path=/main/trunk/; revision=14327
|
|
|
|
|
|
| |
(2to3-3.1 -f xrange -nw ${FILES})
svn path=/main/trunk/; revision=14317
|
|
|
|
| |
svn path=/main/trunk/; revision=14316
|
|
|
|
|
|
| |
(2to3-3.1 -f except -nw ${FILES})
svn path=/main/trunk/; revision=14289
|
|
|
|
| |
svn path=/main/trunk/; revision=14015
|
|
|
|
| |
svn path=/main/trunk/; revision=12775
|
|
|
|
|
|
|
|
|
|
|
| |
field and raise a CacheCorruption exception if necessary.
* Make _mtime_ and _eclasses_ validation code in portdbapi and mirror_cache()
assume that these fields are the correct type (otherwise a CacheCorruption
exeception should be raised earlier).
* Fix the sqlite module to implement _getitem() so that it properly inherits
__getitem__() _mtime_ and _eclasses_ handling.
svn path=/main/trunk/; revision=12735
|
|
|
|
|
|
| |
items(), and values() methods appropriatly for the current python version.
svn path=/main/trunk/; revision=12584
|
|
|
|
| |
svn path=/main/trunk/; revision=11992
|
|
|
|
|
|
| |
key.
svn path=/main/trunk/; revision=11547
|
|
|
|
|
|
| |
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10875
|
|
|
|
|
|
| |
Brian Harring for the suggestion.
svn path=/main/trunk/; revision=6918
|
|
|
|
| |
svn path=/main/trunk/; revision=6912
|
|
|
|
| |
svn path=/main/trunk/; revision=5782
|
|
svn path=/main/trunk/; revision=5778
|