aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* hashed_path: implement __repr__Zac Medico2011-12-201-0/+2
|
* eclass_cache: fix volatile cache DigestExceptionZac Medico2011-10-171-3/+3
| | | | | The deepcopy in catch/volatile.py misbehaved when it tried to copy attributes like __DEEPCOPY__ that didn't correspond to known functions.
* hashed_path: convert OSError to PermissionDeniedZac Medico2011-10-161-0/+2
|
* hashed_path: convert stat OSError to FileNotFoundZac Medico2011-10-161-3/+8
| | | | | This makes it consistent with perform_checksum call which also raises FileNotFound instead of OSError.
* Fix a typo in a comment.Arfrever Frehtes Taifersar Arahesis2011-10-161-1/+1
|
* emerge --metadata: fix empty INHERITED handlingZac Medico2011-10-141-0/+5
| | | | | | | | Since changes to eclass validation code in commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212, validation of cache for packages with empty INHERITED metadata has been broken due to failure to distinguish between None and empty dict return values from eclass.cache.validate_and_rewrite_cache().
* eclass_cache: fix cache_getter typoZac Medico2011-10-141-1/+1
| | | | | | This triggered a regression since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212 that caused cache entries containing eclass paths to appear invalid.
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-141-16/+50
| | | | | | | | | | 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
* eclass_cache: remove deprecated methodsZac Medico2011-03-051-15/+2
|
* portage/eclass_cache.py: Remove deprecated parameterSebastian Luther2010-08-111-8/+2
|
* 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
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+4
| | | | svn path=/main/trunk/; revision=14343
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+2
| | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-3/+3
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=14004
* Fix typo in docstring.Zac Medico2009-04-091-1/+1
| | | | svn path=/main/trunk/; revision=13309
* Add portdbapi support for a metadata/layout.conf file whichZac Medico2009-04-061-11/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Handle potential KeyErrors that may be raised from get_eclass_data(), andZac Medico2008-12-251-6/+1
| | | | | | remove unnecessary print statements inside get_eclass_data(). svn path=/main/trunk/; revision=12329
* For emerge --metadata runs, update _eclasses_ metadata to insert local eclassZac Medico2008-11-181-5/+15
| | | | | | paths. svn path=/main/trunk/; revision=11990
* Bug #124041 - Make emerge show an informative warning message when oneZac Medico2007-11-261-1/+9
| | | | | | | | or more eclasses override eclasses from PORTDIR. The warning can be permanently disabled by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf. svn path=/main/trunk/; revision=8668
* Simplify update_eclasses() a little.Zac Medico2007-09-271-8/+5
| | | | svn path=/main/trunk/; revision=7861
* Catch errno.ENOTDIR instead of using os.path.isdir().Zac Medico2007-09-121-2/+3
| | | | svn path=/main/trunk/; revision=7770
* Bug #192298 - Handle PermissionDenied error in cache.update_eclasses().Zac Medico2007-09-121-2/+15
| | | | svn path=/main/trunk/; revision=7769
* Make all the classes inherit from object.Zac Medico2007-06-201-1/+1
| | | | svn path=/main/trunk/; revision=6886
* Namespace sanitizing, step 2Marius Mauch2007-01-251-2/+2
| | | | | | | Rename portage.exec to portage.process to avoid syntax errors svn path=/main/trunk/; revision=5780
* Namespace sanitizing, step 1Marius Mauch2007-01-251-0/+83
svn path=/main/trunk/; revision=5778