summaryrefslogtreecommitdiffstats
path: root/pym/cache/template.py
Commit message (Collapse)AuthorAgeFilesLines
* Add backward compatibility code for cache modules that override has_key ↵Zac Medico2006-10-271-1/+8
| | | | | | instead of __contains__. svn path=/main/trunk/; revision=4855
* Reverse the relationship between __contains__ and has_key in all cache ↵Zac Medico2006-10-261-2/+2
| | | | | | classes since python handles the "in" operator more efficiently than a has_key method call. svn path=/main/trunk/; revision=4821
* For full compatibility with older versions of portage, write the path in the ↵Zac Medico2006-10-251-6/+5
| | | | | | serialized _eclasses_ when possible. svn path=/main/trunk/; revision=4818
* For the time being, write a variation of the old _eclass_ format so that ↵Zac Medico2006-10-251-0/+10
| | | | | | cache written only forces a regen for older versions of portage rather than a ValueError due to failed long() conversion. svn path=/main/trunk/; revision=4815
* Improve reconstruct_eclasses error handling.Zac Medico2006-10-251-9/+8
| | | | svn path=/main/trunk/; revision=4814
* Remove paths from _eclasses_ serialization in the cache. This makes the ↵Zac Medico2006-10-241-4/+15
| | | | | | mtimes of the eclasses the only thing that distinguishes them, but the probablility of collision is negligible. This same _eclasses_ format will be used to serialize eclass mtimes in cache that is distributed via the rsync mirrors. The deserialization code can handle mixtures of both the old and new formats. svn path=/main/trunk/; revision=4807
* Replace relative imports with absolute imports for forward compatibility ↵Zac Medico2006-09-181-2/+3
| | | | | | with python 2.6. svn path=/main/trunk/; revision=4470
* Implement get() as part of the standard mapping interface.Zac Medico2006-06-201-0/+6
| | | | svn path=/main/trunk/; revision=3545
* make elog mail module always set the 'From' header for rfc2822 complianceMarius Mauch2006-06-101-1/+1
| | | | svn path=/main/trunk/; revision=3483
* Make complete_eclass_entries variable name consistent so that classes ↵Zac Medico2006-02-261-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
* couple of tweaks. fixed up whitespacing for template, added a default ↵Brian Harring2005-12-181-11/+7
| | | | | | | | | | | __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
* replacement cache subsystem that's gestated in 2.1 and 3.0.Brian Harring2005-11-051-0/+171
it rocks your world, baby. svn path=/main/branches/2.0/; revision=2257