summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix incorrect slice inside _src_uri_validate() and add new test case.Zac Medico2009-03-102-2/+3
| | | | svn path=/main/trunk/; revision=12818
* Simplify cmp_sort_key._cmp_key.__lt__().Zac Medico2009-03-101-4/+2
| | | | svn path=/main/trunk/; revision=12817
* Initialize UserDict.data in the constructor.Zac Medico2009-03-101-0/+2
| | | | svn path=/main/trunk/; revision=12816
* Optimize dbapi._cpv_sort_ascending() by calling vercmp directly instead ofZac Medico2009-03-101-9/+7
| | | | | | calling pkgcmp. svn path=/main/trunk/; revision=12815
* Bug #261852 - If an unexpected exception is raise from emerge_main() thenZac Medico2009-03-101-0/+16
| | | | | | | show the traceback after the mod_echo output to that the traceback isn't obscured by mod_echo flooding. svn path=/main/trunk/; revision=12814
* When the config_incrementals parameter is unspecified in the configZac Medico2009-03-101-5/+4
| | | | | | | constructor, don't warn because it's ridiculous to require this parameter when it's always the same anyway. svn path=/main/trunk/; revision=12813
* Simplify environment cleansing that's done for the ROOT=/ config instanceZac Medico2009-03-101-21/+9
| | | | | | | when ROOT!=/. A new "env" config constructor parameter is used to allow the caller to avoid having the config instance polluted by os.environ. svn path=/main/trunk/; revision=12812
* Inside create_trees(), when cleansing the environment for the ROOT=/ configZac Medico2009-03-101-1/+1
| | | | | | | | instance, call config.reset() so that configdict['env'] is cleared as was originally intended here. This prevents thinks like CHOST overrides from the calling environment from inappropriately being applied to ROOT=/. svn path=/main/trunk/; revision=12811
* Bug #261670 - Generate a QA Notice if CHOST (from dyn_install) has a valueZac Medico2009-03-091-17/+24
| | | | | | which differs from the initial setting. svn path=/main/trunk/; revision=12810
* Only execute src_test pre/post hooks when src_test is actually executed.Zac Medico2009-03-091-4/+4
| | | | svn path=/main/trunk/; revision=12809
* Add more QA warnings for econf calls during unexpected phases. Thanks toZac Medico2009-03-091-3/+12
| | | | | | Diego Elio Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=12808
* When generating variable names to hold EXPORT_FUNCTIONS argument in, useZac Medico2009-03-091-6/+1
| | | | | | | $ECLASS_DEPTH as a unique id since it's a lot simpler then encoding the eclass name in the variable name. svn path=/main/trunk/; revision=12806
* Use the ebuild_phase helper function to calls phase hooks and fix brokenZac Medico2009-03-091-24/+18
| | | | | | | trap calls that try to unset multiple signal handlers at once without passing - as the first argument. svn path=/main/trunk/; revision=12805
* Inside dyn_unpack(), only call pre/post phase hooks when src_unpack isZac Medico2009-03-091-2/+1
| | | | | | called (when .unpacked does not already exist). svn path=/main/trunk/; revision=12804
* Fix _setitem() to account for the change to serialize_eclasses = False.Zac Medico2009-03-091-2/+1
| | | | svn path=/main/trunk/; revision=12803
* Make manifest mode with --force option cause existing digests to be replacedZac Medico2009-03-092-1/+49
| | | | | | | | | | | | for any files that exist in ${DISTDIR}. This provides an alternative to ebuild --force manifest for updating existing distfiles digests. Digests are assumed to be corect for files that do not exist in ${DISTDIR} since the user could simply remove the whole Manifest if they wanted to regenerate digests for all files (and it's safer to regenerate as few as possible because it's less probably that a valid digest will get replaced by an invalid one). svn path=/main/trunk/; revision=12802
* Reorganize code for --digests and FEATURES=digest.Zac Medico2009-03-091-21/+49
| | | | svn path=/main/trunk/; revision=12801
* Never call digestgen() inside doebuild() which only 'fetch' has beenZac Medico2009-03-091-1/+4
| | | | | | requested since it's not needed in this case. svn path=/main/trunk/; revision=12800
* Bug #261675 - Generate manifests in advance when FEATURES=digest is enabled.Zac Medico2009-03-091-1/+8
| | | | svn path=/main/trunk/; revision=12799
* Bug #261675 - Also don't call digestgen() from parallel-fetch processes.Zac Medico2009-03-091-1/+2
| | | | svn path=/main/trunk/; revision=12798
* Bug #261675 - When doebuild() is called by emerge, don't call digestgen()Zac Medico2009-03-091-1/+2
| | | | | | | for FEATURES=digest because it's redundant and it can cause interference with parallel-fetch and parallel builds. svn path=/main/trunk/; revision=12797
* Make the --digest warning message show for FEATURES=digest.Zac Medico2009-03-091-2/+7
| | | | svn path=/main/trunk/; revision=12796
* Replace things like [[ $PORTAGE_BUILDDIR/.prepared -nt $WORKDIR ]] withZac Medico2009-03-091-6/+5
| | | | | | | | | simply [[ -e $PORTAGE_BUILDDIR/.prepared ]] since the timestamp of $WORKDIR is practically always newer due to the other hidden files that are created there as each phase is executed. Thanks to Alfredo Tupone <tupone@g.o> for reporting. svn path=/main/trunk/; revision=12795
* Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit, sinceZac Medico2009-03-081-0/+7
| | | | | | it's incompatible with <=portage-2.1.6.7. svn path=/main/trunk/; revision=12794
* for pointers cast to 32bit ints, we always want to abort on 64bit systems, ↵Mike Frysinger2009-03-081-7/+11
| | | | | | not just when FEATURES=stricter svn path=/main/trunk/; revision=12793
* Fix typo from previous commit.Zac Medico2009-03-081-1/+1
| | | | svn path=/main/trunk/; revision=12792
* Also support + character in eclass names.Zac Medico2009-03-081-1/+2
| | | | svn path=/main/trunk/; revision=12791
* Translate period characters in eclass names when generating variable namesZac Medico2009-03-081-3/+4
| | | | | | to store EXPORT_FUNCTIONS arguments. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=12788
* Make EXPORT_FUNCTIONS store it's arguments in an environment variable andZac Medico2009-03-081-12/+28
| | | | | | | | | perform the function generation after the current inherit call has returned. This allows an eclass to call EXPORT_FUNCTIONS either before or after it inherits other eclasses, and the result is still the same. Thanks to Donnie Berkholz <dberkholz@g.o> for reporting. svn path=/main/trunk/; revision=12785
* Revert previous 2 commits due to bugs.Zac Medico2009-03-081-20/+12
| | | | svn path=/main/trunk/; revision=12784
* Fix PECLASS logic inside inherit() so that ECLASS is always restored to theZac Medico2009-03-081-5/+7
| | | | | | | correct value after recursion (previously it would be restored to the wrong value if more than one eclass was passed into the inherit call). svn path=/main/trunk/; revision=12783
* Make EXPORT_FUNCTIONS store it's arguments in an environment variable andZac Medico2009-03-081-7/+13
| | | | | | | | | perform the function generation after the current inherit call has returned. This way an eclass can call EXPORT_FUNCTIONS either before or after it inherits other eclasses, and the result is still the same. Thanks to Donnie Berkholz <dberkholz@g.o> for reporting. svn path=/main/trunk/; revision=12782
* Implement _getitem instead of __getitem__ so that the base class __getitem__Zac Medico2009-03-082-23/+6
| | | | | | implementation is used for _mtime_ and _eclasses_ handling. svn path=/main/trunk/; revision=12781
* In LazyItemsDict.__deepcopy__(), enable deepcopy of lazy items as it wasZac Medico2009-03-071-2/+25
| | | | | | | before. This requires _LazyItem.__deepcopy__() to be overridden since the default implementation can fail silently, leaving some attributes unset. svn path=/main/trunk/; revision=12780
* Use slice instead of startwith in stack_* incremental processing.Zac Medico2009-03-071-2/+2
| | | | svn path=/main/trunk/; revision=12779
* Remove unnecessary list() from previous commit.Zac Medico2009-03-071-1/+1
| | | | svn path=/main/trunk/; revision=12778
* Fix an issue with incomplete deepcopy of _LazyItem instances insideZac Medico2009-03-071-8/+3
| | | | | | LazyItemsDict.__deepcopy__(). Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=12777
* Fix __getitem__ to convert mtime to long, and remove unreachable codeZac Medico2009-03-071-8/+10
| | | | | | from _parse_data(). svn path=/main/trunk/; revision=12776
* Always use basestring instead of str with isinstance().Zac Medico2009-03-074-4/+4
| | | | svn path=/main/trunk/; revision=12775
* Allow unicode type values in config.__setitem__(). Thanks to Arfrever FrehtesZac Medico2009-03-071-1/+1
| | | | | | Taifersar Arahesis for this patch. svn path=/main/trunk/; revision=12774
* Simplify LazyItemsDict internals.Zac Medico2009-03-071-27/+30
| | | | svn path=/main/trunk/; revision=12773
* Fix LazyItemsDict.update() to create new _SingletonWrapper instances thatZac Medico2009-03-071-9/+12
| | | | | | reference self. svn path=/main/trunk/; revision=12772
* Add keyword argument support to LazyItemsDict.update().Zac Medico2009-03-061-2/+16
| | | | svn path=/main/trunk/; revision=12771
* Remove unused import.Zac Medico2009-03-061-1/+0
| | | | svn path=/main/trunk/; revision=12770
* Define __slots__ for classes derived from ObjectProxy.Zac Medico2009-03-061-0/+7
| | | | svn path=/main/trunk/; revision=12769
* Send message about unset RESUMECOMMAND to stderr instead of stdout.Zac Medico2009-03-061-1/+1
| | | | svn path=/main/trunk/; revision=12768
* Make digraph store a single priority list for each edge instead of twoZac Medico2009-03-061-7/+16
| | | | | | identical lists. svn path=/main/trunk/; revision=12767
* whitespace cleanupZac Medico2009-03-061-7/+7
| | | | svn path=/main/trunk/; revision=12766
* Fix failure exit status. Thanks to Brian Harring.Zac Medico2009-03-061-1/+1
| | | | svn path=/main/trunk/; revision=12765
* Make config.categories a sorted tuple so that portdbapi can reuse it.Zac Medico2009-03-052-2/+3
| | | | svn path=/main/trunk/; revision=12760