summaryrefslogtreecommitdiffstats
path: root/pym/cache/flat_hash.py
Commit message (Collapse)AuthorAgeFilesLines
* Implement iterkeys on top of __iter__ instead of vice versa. Thanks to ↵Zac Medico2007-06-221-1/+1
| | | | | | Brian Harring for the suggestion. (trunk r6918) svn path=/main/branches/2.1.2/; revision=6934
* Ignore non-existent directories for bug #171809. This is required for ↵Zac Medico2007-03-231-1/+9
| | | | | | readonly mode. (trunk r6264:6265) svn path=/main/branches/2.1.2/; revision=6266
* When an unprivileged user runs portage (not in the portage group), use ↵Zac Medico2006-12-221-1/+1
| | | | | | metadata_overlay together with a volatile in-memory cache module in order to implement cache writes. This allows, for example, a user who's not in the portage group to run `ebuild foo.ebuild digest` (issue reported by Charlie Shepherd <masterdriverz@gentoo.org>). svn path=/main/trunk/; revision=5354
* Reverse the relationship between __contains__ and has_key in all cache ↵Zac Medico2006-10-261-1/+1
| | | | | | classes since python handles the "in" operator more efficiently than a has_key method call. svn path=/main/trunk/; revision=4821
* Enable recognition of _mtime_ that doesn't rely on cache mtime mangling.Zac Medico2006-10-241-1/+4
| | | | svn path=/main/trunk/; revision=4808
* Catch a ValueError caused by corrupt cache for bug #149134.Zac Medico2006-09-281-1/+5
| | | | svn path=/main/trunk/; revision=4545
* Move the open call out of the inner try block.Zac Medico2006-09-221-4/+2
| | | | svn path=/main/trunk/; revision=4506
* Use finally: to ensure that the file is closed properly.Zac Medico2006-09-221-8/+9
| | | | svn path=/main/trunk/; revision=4504
* Improve and simplify __getitem__ error handling.Zac Medico2006-09-221-14/+8
| | | | svn path=/main/trunk/; revision=4502
* Use fstat to when retrieve cache timestamps and avoid a race.Zac Medico2006-09-221-13/+3
| | | | svn path=/main/trunk/; revision=4501
* Convert stat timestamps to long for compatibility with python-2.5, which ↵Zac Medico2006-09-221-1/+2
| | | | | | returns floats for timestamps. svn path=/main/trunk/; revision=4499
* Replace relative imports with absolute imports for forward compatibility ↵Zac Medico2006-09-181-4/+4
| | | | | | with python 2.6. svn path=/main/trunk/; revision=4470
* make elog mail module always set the 'From' header for rfc2822 complianceMarius Mauch2006-06-101-1/+1
| | | | svn path=/main/trunk/; revision=3483
* Use iteritems() instead of items() because an iterator uses less memory.Zac Medico2006-05-141-1/+1
| | | | svn path=/main/trunk/; revision=3350
* Write raw bytes instead of attempting to encode as utf-8 for bug #133287.Zac Medico2006-05-141-1/+1
| | | | svn path=/main/trunk/; revision=3349
* Properly encode metadata strings as utf-8 in order to avoid ↵Zac Medico2006-05-071-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 Medico2006-05-071-1/+1
| | | | svn path=/main/trunk/; revision=3327
* Prevent an IOError with errno != ENOENT from being swallowed in ↵Zac Medico2006-03-181-5/+5
| | | | | | flat_hash._setitem(). svn path=/main/trunk/; revision=2944
* Replace hard coded number 2 in cache modules with errno.ENOENT.Zac Medico2006-03-181-3/+3
| | | | svn path=/main/trunk/; revision=2938
* Only write known keys in flat_hash cache entries (filter out UNUSED_* keys).Zac Medico2006-02-261-1/+1
| | | | svn path=/main/trunk/; revision=2787
* replacement cache subsystem that's gestated in 2.1 and 3.0.Brian Harring2005-11-051-0/+129
it rocks your world, baby. svn path=/main/branches/2.0/; revision=2257