summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.v2.2_rc5Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11284
* Update foo[!bar=] syntax.Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11283
* * Fix Scheduler._restart_if_necessary() breakage so that the given packageZac Medico2008-07-301-14/+16
| | | | | | | | is correctly compared to the last one in the merge list. * Update code in depgraph.display() to be more consistent with the code in Scheduler._is_restart_necessary(). svn path=/main/trunk/; revision=11282
* Remove redundant use dep validation code that's handled by regular expressionZac Medico2008-07-301-6/+2
| | | | | | now. svn path=/main/trunk/; revision=11281
* Remove unused variable.Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11280
* * Add more use dep validation.Zac Medico2008-07-302-9/+28
| | | | | | * Fix broken handling of !foo? reported by ABCD. svn path=/main/trunk/; revision=11279
* When checking for news items in --pretend mode, pass update=False intoZac Medico2008-07-301-22/+27
| | | | | | | | | | | the NewsManager.getUnreadItems() call. Emerge shouldn't have to update anything anyway when in --pretend mode, and this helps to avoid potential permission problems. In order to pass the relevant information about options (--pretend state) to the new code, supporting function parameters have been added to display_news_notification(), post_emerge(), and checkUpdatedNewsItems(). svn path=/main/trunk/; revision=11278
* Put a 5 second cap on the delay produced by Scheduler._job_delay().Zac Medico2008-07-301-2/+5
| | | | svn path=/main/trunk/; revision=11277
* Just return a boolean "state changed" value fromZac Medico2008-07-301-7/+7
| | | | | | | Scheduler._schedule_tasks_imp(), since the other "remaining" part is now unused. svn path=/main/trunk/; revision=11276
* * Optimize SequentialTaskQueue.schedule() by using a _dirty attributeZac Medico2008-07-301-13/+18
| | | | | | | | | | to track whether anything relevant has changed since the last schedule call. Since we can always rely on exist listeners being called, set of running tasks is always pruned automatically and there is never any need to actively prune it. * Remove the unused SequentialTaskQueue.auto_schedule feature. svn path=/main/trunk/; revision=11275
* Change conditional USE deps syntax and expermental EAPI from 2_pre0 to 2_pre1.Zac Medico2008-07-305-22/+28
| | | | | | | | | | | | | | Conditional syntax examples: Compact Form Equivalent Expanded Form foo[bar?] bar? ( foo[bar] ) !bar? ( foo ) foo[!bar?] bar? ( foo ) !bar? ( foo[-bar] ) foo[bar=] bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[!bar=] bar? ( foo[-bar] ) !bar? ( foo[bar] ) svn path=/main/trunk/; revision=11274
* Count state changes in Scheduler._schedule_tasks() and avoid some extra callsZac Medico2008-07-291-5/+12
| | | | | | when nothing changes. svn path=/main/trunk/; revision=11273
* Fix _choose_pkg() to always return something if nothing is running or merging.Zac Medico2008-07-291-0/+3
| | | | svn path=/main/trunk/; revision=11272
* Avoid triggering a tight loop AssertionError in Scheduler._main_loop().Zac Medico2008-07-291-1/+2
| | | | svn path=/main/trunk/; revision=11271
* Fix the last part of Scheduler._main_loop() to work correctly now thatZac Medico2008-07-291-5/+7
| | | | | | all the queues have auto_schedule disabled. svn path=/main/trunk/; revision=11270
* Disable auto_schedule on all of Scheduler._task_queues and schedule themZac Medico2008-07-291-8/+4
| | | | | | inside _schedule_tasks(). This should help solve a tight loop. svn path=/main/trunk/; revision=11269
* Add a quiet signal handler for SIGINT and SIGTERM since emerge calls ebuildZac Medico2008-07-291-1/+16
| | | | | | | for fetchs and we don't want the user to see a traceback due to the ebuild process getting killed. svn path=/main/trunk/; revision=11268
* Fix Scheduler._set_digraph() to correctly handle cases when max_jobs is True.Zac Medico2008-07-291-1/+2
| | | | svn path=/main/trunk/; revision=11267
* Make sure Scheduler._choose_pkg() doesn't return a package too early whenZac Medico2008-07-291-0/+3
| | | | | | there's no digraph and the previous merge hasn't completed yet. svn path=/main/trunk/; revision=11266
* Fix Scheduler._choose_pkg() so that it doesn't choose packages prematurelyZac Medico2008-07-291-1/+1
| | | | | | in some cases. svn path=/main/trunk/; revision=11265
* Enable Scheduler._job_delay() whenever --load-average is enabled, for wholeZac Medico2008-07-291-18/+5
| | | | | | | time the scheduler is running. This protects against too many jobs being sheduled if the load average temporarily drops. svn path=/main/trunk/; revision=11264
* During the first minute of entering the main scheduler loop, if --load-averageZac Medico2008-07-291-0/+38
| | | | | | | | | is enabled then limit the rate that new jobs are spawned, so that the load average measurement has time to respond to the new load introduced by the new jobs. The time between spawning new jobs is proportional to the number of currently running jobs. svn path=/main/trunk/; revision=11263
* Fix slightly broken loop logic in insert_optional_args() by converting it toZac Medico2008-07-291-7/+9
| | | | | | pop args off of a stack. svn path=/main/trunk/; revision=11262
* Add support for the --jobs option to be specified without anZac Medico2008-07-293-15/+85
| | | | | | | | | | | | | | argument, and also support -j as a short option. Since optparse doesn't natively support options with non-required args, create an insert_optional_args() function that inserts the required argument into the args so that optparse is happy. The function inserts the string True as a substitute for the argument that is required. This string is later converted to the True constant when stored in the emerge opts dict (similar to how normal boolean options are stored). The PollScheduler and SequentialTaskQueue classes recognize the meaning of the True constant to mean unlimited concurrent jobs. svn path=/main/trunk/; revision=11261
* In apply_recursive_permissions(), ignore InvalidLocation exceptions such asZac Medico2008-07-291-2/+6
| | | | | | | FileNotFound and DirectoryNotFound since sometimes things disappear, like when adjusting permissions on DISTCC_DIR. svn path=/main/trunk/; revision=11260
* Tweak table alignment.Zac Medico2008-07-291-2/+2
| | | | svn path=/main/trunk/; revision=11259
* Implement _use_dep.__nonzero__().Zac Medico2008-07-291-0/+3
| | | | svn path=/main/trunk/; revision=11258
* Fix _use_dep.__str__() to work correctly in the case when conditional USEZac Medico2008-07-291-0/+2
| | | | | | | deps have evaluated to nothing (empty string rather than []). Thanks to ABCD for reporting. svn path=/main/trunk/; revision=11257
* Redirect the FEATURES=buildsyspkg message to the log when in background mode.Zac Medico2008-07-291-6/+18
| | | | svn path=/main/trunk/; revision=11256
* Add syntax examples for unconditional USE deps.Zac Medico2008-07-281-0/+29
| | | | svn path=/main/trunk/; revision=11255
* Fix alignment.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11254
* Tweak the conditional USE deps examples.Zac Medico2008-07-282-8/+8
| | | | svn path=/main/trunk/; revision=11253
* Document the doman language code path translation extension from bug #222439.Zac Medico2008-07-281-0/+31
| | | | svn path=/main/trunk/; revision=11252
* Make use of the new config.iteritems() method.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11251
* Fix broken reference to "categories" in CategorySet.singleBuilder(). ThanksZac Medico2008-07-281-1/+1
| | | | | | to Thargor for reporting. svn path=/main/trunk/; revision=11250
* Bug #233165 - When waiting for jobs and merges to finish inZac Medico2008-07-281-0/+3
| | | | | | | | | Scheduler._main_loop(), keep scheduling the merge queue since it doesn't autoschedule, and skip the poll loop if there no event handlers due to synchronous merge tasks being the only things left to do. svn path=/main/trunk/; revision=11249
* Bug #233103 - In portage.fetch(), pass all config variables instead of justZac Medico2008-07-281-1/+1
| | | | | | those returned by the environ() method which is filtered. svn path=/main/trunk/; revision=11245
* Even though the message is split on $'\n' in elog_base(), it's stillZac Medico2008-07-282-2/+6
| | | | | | | | not entirely safe to use it as a delimiter in the log file since there can still be escaped newlines that will be expanded due to the echo -e parameter. svn path=/main/trunk/; revision=11244
* Remove pointless generator expression.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11238
* Add note about support for EAPI="2_pre0".v2.2_rc4Zac Medico2008-07-281-0/+5
| | | | svn path=/main/trunk/; revision=11236
* Create a table to document conditional USE dependency syntax.Zac Medico2008-07-283-0/+41
| | | | svn path=/main/trunk/; revision=11235
* Fix arg count when constructing a TypeError in the SlotDict constructor.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11234
* Add support for an new EAPI="2_pre0" value so that people who want to testZac Medico2008-07-281-1/+4
| | | | | | | | USE deps can set the EAPI to something other than 0 or 1. We can support as many different experimental EAPI values as we need, and drop support for them when the final EAPI 2 is defined. svn path=/main/trunk/; revision=11233
* Disable the multi-bracket USE deps syntax, so only the comma separated syntaxZac Medico2008-07-283-4/+6
| | | | | | is now valid. svn path=/main/trunk/; revision=11232
* Implement new conditional USE dep syntax:Zac Medico2008-07-282-25/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditional evaluation behavior: parent state conditional result x x? x -x x? x -x? -x -x? -x x x= x -x x= -x x x!= -x -x x!= x Conditional syntax examples: compact form equivalent expanded form foo[bar?] foo bar? ( foo[bar] ) foo[-bar?] foo !bar? ( foo[-bar] ) foo[bar=] foo bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[bar!=] foo bar? ( foo[-bar] ) !bar? ( foo[bar] ) svn path=/main/trunk/; revision=11231
* Create a SlotDict constructor which can take an optional positional arg thatZac Medico2008-07-281-0/+13
| | | | | | | | | is passed to the update() method (similar to the dict constructor), and also pass keyword arguments into the update() method if any are given. This makes it possible to use the constructor similarly to the way that the _emerge.SlotObject constructor is used. svn path=/main/trunk/; revision=11230
* * Add support in dep_getusedeps() and isvalidatom() for comma separated USEZac Medico2008-07-282-3/+33
| | | | | | | deps that only have one set of square brackets. * Add test cases for the new comma separated USE deps syntax. svn path=/main/trunk/; revision=11229
* Bug #233137 - Implement Atom.split().Zac Medico2008-07-281-1/+2
| | | | svn path=/main/trunk/; revision=11228
* Fix incorrect logging.exception() arguments. The exception instance is notZac Medico2008-07-271-4/+4
| | | | | | supposed to be passed into this function. svn path=/main/trunk/; revision=11227
* Fix the new glep56 code to handle missing metadata.xml. Thanks to jmbsvicettoZac Medico2008-07-271-9/+10
| | | | | | for reporting. svn path=/main/trunk/; revision=11226