summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/metadata.py
Commit message (Collapse)AuthorAgeFilesLines
* cache/metadata.py: add HDEPENDZac Medico2012-09-241-1/+2
|
* cache/template.__getitem__: filter INHERITEDZac Medico2011-10-291-1/+0
| | | | | | | 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).
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-141-2/+5
| | | | | | | | | | 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
* Add REQUIRED_USE to metadata keys, caches, etc.Sebastian Luther2010-08-101-1/+1
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of theZac Medico2009-12-211-1/+2
| | | | | | float st_mtime in order to avoid rounding *up* in some rare cases. svn path=/main/trunk/; revision=15125
* Misc performance enhancements. Thanks to Marat RadchenkoZac Medico2009-09-241-1/+1
| | | | | | <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14398
* Bug #285979 - Replace references to CDEPEND with UNUSED_00, to make it clearZac Medico2009-09-231-1/+1
| | | | | | that this key really is unused. svn path=/main/trunk/; revision=14393
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+1
| | | | svn path=/main/trunk/; revision=14343
* Use range() instead of xrange() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317
* Define basestring as str when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+4
| | | | svn path=/main/trunk/; revision=14316
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-4/+4
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Use _encodings where appropriate.Zac Medico2009-08-211-8/+13
| | | | svn path=/main/trunk/; revision=14107
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-5/+8
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=14002
* Use readlines() to optimize performance. Thanks to Marat RadchenkoZac Medico2009-07-191-1/+0
| | | | | | <slonopotamusorama@gmail.com> for this patch from bug #276813. svn path=/main/trunk/; revision=13834
* Hardcode utf_8 encoding inside _setitem().Zac Medico2009-07-051-3/+2
| | | | svn path=/main/trunk/; revision=13792
* Bug #265768 - When initializing the eclass cache, use the correct location.Zac Medico2009-04-121-1/+1
| | | | svn path=/main/trunk/; revision=13328
* Add portdbapi support for a metadata/layout.conf file whichZac Medico2009-04-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | specifies information about the repository layout. Currently, only a single "masters" attribute is supported, which is used to specify names of repositories which satisfy dependencies on eclasses and/or ebuilds. Each repository name should correspond the value of a repo_name entry from one of the repositories that is configured via the PORTDIR or PORTDIR_OVERLAY variables. Since layout.conf is now used to control eclass inheritance, it is now safer to use overlays which contain forked eclasses have names identical to those from the main tree. Such eclasses will only apply to their containing repository and any other repositories which reference their containing repository via layout.conf. This solves bug #124041 by containing eclass overrides so that they don't necessarily apply to all ebuilds. Thanks to Alistair Bush <ali_bush@g.o> for his initial patch for layout.conf support in repoman (will be merged later). See the "QA Overlay Layout support" thread on the gentoo-dev mailing list for more information: http://archives.gentoo.org/gentoo-dev/msg_33c61550b4ed2b7b25dd5a4110e1ec81.xml svn path=/main/trunk/; revision=13291
* Add a new egencache --rsync option which enables a stat collision workaroundZac Medico2009-03-311-8/+41
| | | | | | | | | | | | for cases in which the content of a cache entry changes and neither the file mtime nor size changes (preventing rsync from detecting changes). See bug #139134. This option should only be needed for distribution via something like rsync, which relies on timestamps and file sizes to detect changes. It's not needed with git since that uses a more thorough mechanism which allows it to detect changed inode numbers (described in racy-git.txt in the git technical docs). svn path=/main/trunk/; revision=13262
* Fix _setitem() to account for the change to serialize_eclasses = False.Zac Medico2009-03-091-2/+1
| | | | svn path=/main/trunk/; revision=12803
* Implement _getitem instead of __getitem__ so that the base class __getitem__Zac Medico2009-03-081-4/+1
| | | | | | implementation is used for _mtime_ and _eclasses_ handling. svn path=/main/trunk/; revision=12781
* Remove unnecessary setting of default values to empty strings insideZac Medico2009-03-051-3/+0
| | | | | | database._getitem(). svn path=/main/trunk/; revision=12756
* Fix _setitem() to write the same format that's currently distributed in theZac Medico2009-01-061-5/+40
| | | | | | rsync tree. svn path=/main/trunk/; revision=12383
* Handle potential KeyErrors that may be raised from get_eclass_data(), andZac Medico2008-12-251-2/+7
| | | | | | remove unnecessary print statements inside get_eclass_data(). svn path=/main/trunk/; revision=12329
* Add support for the new DEFINED_PHASES metadata key which is automatically ↵Zac Medico2008-12-211-1/+1
| | | | | | | | | generated from the set of phase functions that are defined by the ebuild and any eclasses it may have inherited. svn path=/main/trunk/; revision=12273
* Make sure the dict returned from _parse_data() contains all of _known_keys.Zac Medico2008-11-221-0/+3
| | | | svn path=/main/trunk/; revision=12028
* Inside _parse_data(), don't rely on the magic 22 line count for the flat_listZac Medico2008-11-201-27/+18
| | | | | | | format, since it doesn't make a significant performance difference and it places an artificial limit on the number of keys that can be stored. svn path=/main/trunk/; revision=12008
* Store the _eclasses_ field instead of INHERITED.Zac Medico2008-11-171-8/+0
| | | | svn path=/main/trunk/; revision=11986
* Update hardcoded auxdbkey_order attributes to include PROPERTIES.Zac Medico2008-09-261-1/+1
| | | | svn path=/main/trunk/; revision=11560
* Ensure that cache modules always return a dict containing the _eclasses_Zac Medico2008-09-251-0/+2
| | | | | | key. svn path=/main/trunk/; revision=11547
* Fix some breakage caused by script malfunctionMarius Mauch2007-01-251-1/+1
| | | | svn path=/main/trunk/; revision=5783
* Namespace sanitizing, step 3Marius Mauch2007-01-251-5/+5
| | | | svn path=/main/trunk/; revision=5782
* Namespace sanitizing, step 1Marius Mauch2007-01-251-0/+87
svn path=/main/trunk/; revision=5778