Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't use LazyLoad for cache pulls because it causes a race condition. | Zac Medico | 2006-09-22 | 1 | -11/+1 |
| | | | | svn path=/main/trunk/; revision=4503 | ||||
* | Improve and simplify __getitem__ error handling. | Zac Medico | 2006-09-22 | 1 | -14/+8 |
| | | | | svn path=/main/trunk/; revision=4502 | ||||
* | Use fstat to when retrieve cache timestamps and avoid a race. | Zac Medico | 2006-09-22 | 2 | -15/+5 |
| | | | | svn path=/main/trunk/; revision=4501 | ||||
* | For compatibility with float timestamps in python-2.5, convert st_mtime ↵ | Zac Medico | 2006-09-22 | 1 | -1/+2 |
| | | | | | | attributes to long wherever portage expects 1s resolution. svn path=/main/trunk/; revision=4500 | ||||
* | Convert stat timestamps to long for compatibility with python-2.5, which ↵ | Zac Medico | 2006-09-22 | 1 | -1/+2 |
| | | | | | | returns floats for timestamps. svn path=/main/trunk/; revision=4499 | ||||
* | Allow cache.sqlite to use sqlite3 from python-2.5, if available. | Zac Medico | 2006-09-22 | 1 | -1/+4 |
| | | | | svn path=/main/trunk/; revision=4498 | ||||
* | Replace relative imports with absolute imports for forward compatibility ↵ | Zac Medico | 2006-09-18 | 10 | -25/+25 |
| | | | | | | with python 2.6. svn path=/main/trunk/; revision=4470 | ||||
* | Make it easy to pass alternative cache implementations into the constructor ↵ | Zac Medico | 2006-06-20 | 1 | -1/+2 |
| | | | | | | as suggested by Brian Harring. svn path=/main/trunk/; revision=3547 | ||||
* | Use get() to simplify setitem logic as suggested by Brian Harring. | Zac Medico | 2006-06-20 | 1 | -12/+10 |
| | | | | svn path=/main/trunk/; revision=3546 | ||||
* | Implement get() as part of the standard mapping interface. | Zac Medico | 2006-06-20 | 1 | -0/+6 |
| | | | | svn path=/main/trunk/; revision=3545 | ||||
* | Fix it so that values are properly saved in the writable layer. Previously ↵ | Zac Medico | 2006-06-20 | 1 | -1/+3 |
| | | | | | | they've been discarded, leading to regen on each access (only in cases where the user has altered an ebuild in the $PORTDIR). svn path=/main/trunk/; revision=3544 | ||||
* | make elog mail module always set the 'From' header for rfc2822 compliance | Marius Mauch | 2006-06-10 | 10 | -10/+10 |
| | | | | svn path=/main/trunk/; revision=3483 | ||||
* | Use iteritems() instead of items() because an iterator uses less memory. | Zac Medico | 2006-05-14 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=3350 | ||||
* | Write raw bytes instead of attempting to encode as utf-8 for bug #133287. | Zac Medico | 2006-05-14 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=3349 | ||||
* | Fix a potential NameError due to 'cpv' being undefined in the namespace and ↵ | Zac Medico | 2006-05-07 | 1 | -3/+5 |
| | | | | | | also fix a potential AttributeError due to an attempt to call reconstruct_eclasses() on a dict object that has already been reconstructed in flat_hash.database._parse_data(). svn path=/main/trunk/; revision=3329 | ||||
* | Properly encode metadata strings as utf-8 in order to avoid ↵ | Zac Medico | 2006-05-07 | 1 | -1/+1 |
| | | | | | | | | "UnicodeEncodeError: 'ascii' codec can't encode character" exception when given a unicode string. svn path=/main/trunk/; revision=3328 | ||||
* | Replace inappropriate use of writelines with normal write. | Zac Medico | 2006-05-07 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=3327 | ||||
* | Remove the uppercase requirement on flat_hash metadata keys so that ↵ | Zac Medico | 2006-05-06 | 1 | -3/+1 |
| | | | | | | _eclasses_ will work. This is equivalent to the patch by Brian Harring that went into 2.0.54-r2 for forward compatibility with planned changes in the rsync metadata cache. svn path=/main/trunk/; revision=3323 | ||||
* | Catch an uncaught CacheCorruption for the traceback from bug #126692. | Zac Medico | 2006-05-03 | 1 | -1/+7 |
| | | | | svn path=/main/trunk/; revision=3313 | ||||
* | Add a new sqlite cache module (one I wrote) that has acceptable performance. | Zac Medico | 2006-05-01 | 1 | -0/+237 |
| | | | | svn path=/main/trunk/; revision=3299 | ||||
* | Remove sqlite.py because it's performance is unacceptable and it is ↵ | Zac Medico | 2006-05-01 | 1 | -67/+0 |
| | | | | | | therefore useless. svn path=/main/trunk/; revision=3298 | ||||
* | Fix some minor issues with the anydbm cache module. Thanks to Halcyon for ↵ | Zac Medico | 2006-04-08 | 1 | -3/+3 |
| | | | | | | reporting. svn path=/main/trunk/; revision=3097 | ||||
* | Prevent an IOError with errno != ENOENT from being swallowed in ↵ | Zac Medico | 2006-03-18 | 1 | -5/+5 |
| | | | | | | flat_hash._setitem(). svn path=/main/trunk/; revision=2944 | ||||
* | Replace hard coded number 2 in cache modules with errno.ENOENT. | Zac Medico | 2006-03-18 | 2 | -11/+7 |
| | | | | svn path=/main/trunk/; revision=2938 | ||||
* | Fix misuse of dict.fromkeys class method so that cache cleansing works ↵ | Zac Medico | 2006-03-12 | 1 | -1/+1 |
| | | | | | | during `emerge --metadata` runs. svn path=/main/trunk/; revision=2861 | ||||
* | Use rstrip("\n") instead of -1 index to safely remove newline characters. | Zac Medico | 2006-02-26 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=2793 | ||||
* | Add a new cache.metadata_overlay module that layers a writable cache over a ↵ | Zac Medico | 2006-02-26 | 1 | -0/+91 |
| | | | | | | readonly cache. svn path=/main/trunk/; revision=2792 | ||||
* | Only write known keys in flat_hash cache entries (filter out UNUSED_* keys). | Zac Medico | 2006-02-26 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=2787 | ||||
* | Fix cache.metadata.database so that it correctly removes the newline ↵ | Zac Medico | 2006-02-26 | 1 | -1/+1 |
| | | | | | | character from the end of the line when parsing flat_hash entries. svn path=/main/trunk/; revision=2786 | ||||
* | Make complete_eclass_entries variable name consistent so that classes ↵ | Zac Medico | 2006-02-26 | 1 | -1/+1 |
| | | | | | | derived from cache.template.database are compatible with the mirror_cache() function in the cache.util module. svn path=/main/trunk/; revision=2785 | ||||
* | removed unnecessary reconstruct_eclasses import | Brian Harring | 2005-12-18 | 1 | -1/+0 |
| | | | | svn path=/main/trunk/; revision=2397 | ||||
* | couple of tweaks. fixed up whitespacing for template, added a default ↵ | Brian Harring | 2005-12-18 | 2 | -20/+10 |
| | | | | | | | | | | | __contains__ func to the template, finally added serialize_eclasses class attribute; controls whether __(get|set)item__ do _eclasses_ mangling on their own, or leave it to the child class. updated anydbm to handle serializing itself svn path=/main/trunk/; revision=2395 | ||||
* | Unpack the _eclasses_ value as it's packed by the database template's ↵ | Jason Stubbs | 2005-12-17 | 1 | -1/+5 |
| | | | | | | __setitem__ method. svn path=/main/trunk/; revision=2393 | ||||
* | replacement cache subsystem that's gestated in 2.1 and 3.0. | Brian Harring | 2005-11-05 | 12 | -0/+1240 |
it rocks your world, baby. svn path=/main/branches/2.0/; revision=2257 |