summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* When there is no build log to display, it means that fetch failed, soZac Medico2008-08-051-15/+51
| | | | | | display the fetch log in that case. svn path=/main/trunk/; revision=11331
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-041-1/+1
| | | | | | | new EAPI=2_pre2. Thanks to Arfrever Frehtes Taifersar Arahesis for the initial patch which I've made a few adjustments to. svn path=/main/trunk/; revision=11327
* Remove code from bug #223447 which is now obsolete due to depclean usingZac Medico2008-08-041-13/+1
| | | | | | the depgraph class. svn path=/main/trunk/; revision=11326
* Make the status display say "Emerging" and "Emerging binary" instead ofZac Medico2008-08-041-2/+2
| | | | | | | "Building" and "Extracting". Thanks to Joe Peterson <lavajoe> for the suggestion (including extra newlines from previous commit). svn path=/main/trunk/; revision=11325
* Insert extra newline before status messages, since that's how it used to be.Zac Medico2008-08-041-1/+2
| | | | svn path=/main/trunk/; revision=11324
* Handle missing sets, to avoid KeyError raised from unmerge().Zac Medico2008-08-021-0/+12
| | | | svn path=/main/trunk/; revision=11319
* Make EbuildFetcher pass a copy of os.environ to the ebuild(1) subprocess sov2.2_rc6Zac Medico2008-08-011-1/+6
| | | | | | | that any incremental variables have been overridden are correctly considered by the config instance in the subproccess. svn path=/main/trunk/; revision=11312
* Bug #233252 - Handle InvalidAtom exceptions that can be raised fromZac Medico2008-08-011-15/+20
| | | | | | depgraph._add_dep() calls inside _add_pkg_deps(). svn path=/main/trunk/; revision=11309
* Bug #233487 - Fix --fetch-all-uri breakage:Zac Medico2008-08-011-3/+10
| | | | | | | | | | | * Make --fetch-all-uri imply --fetchonly so that all the --fetchonly conditionals apply to --fetch-all-uri as well. * Add an EbuildFetcher.fetchall attribute, and also add the required support to portage.doebuild() for a "fetchall" phase that EbuildFetcher can invoke in the background via the ebuild(1) command. svn path=/main/trunk/; revision=11303
* Bug #233458 - Fix AsynchronousTask exit listener handling so that an exitZac Medico2008-07-311-5/+17
| | | | | | | | | listener will never get called after it's been passed into removeExitListener(), since the caller of removeExitListener() needs to be able to be able to trust that the given exit listener will not be called under any circumstances. svn path=/main/trunk/; revision=11297
* Bug #233421 - Fix grammar, missing "be" in --update description. Thanks toZac Medico2008-07-301-2/+2
| | | | | | Mikael Magnusson for this patch. svn path=/main/trunk/; revision=11288
* Fix typo.v2.2_rc5Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11284
* * 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
* 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
* 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
* 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-292-12/+81
| | | | | | | | | | | | | | 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
* Redirect the FEATURES=buildsyspkg message to the log when in background mode.Zac Medico2008-07-291-6/+18
| | | | svn path=/main/trunk/; revision=11256
* Make use of the new config.iteritems() method.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11251
* 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
* Fix EbuildFetcher to pass all config variables to the fetcher so thingsZac Medico2008-07-271-7/+1
| | | | | | like http_proxy are included. svn path=/main/trunk/; revision=11223
* Serialize src_unpack() $DISTDIR access for live ebuilds since otherwise theyZac Medico2008-07-271-4/+43
| | | | | | | can interfere with eachother. This will have to rely on a hardcoded list of eclasses until we create way to properly tag this information in the metadata. svn path=/main/trunk/; revision=11213
* Schedule ebuild pkg_setup phases on the merge queue,Zac Medico2008-07-271-15/+37
| | | | | | | in order to serialize unsandboxed access to the live filesystem. svn path=/main/trunk/; revision=11204
* In PollScheduler._poll(), add a call to _schedule() in order to ensure thatZac Medico2008-07-271-16/+36
| | | | | | | | | event handlers are registered if possible. If not, raise StopIteration in order to avoid endless blocking in a poll call with no file descriptors registered. Add StopIteration exception handling for all PollScheduler._poll._next_poll_event() calls. svn path=/main/trunk/; revision=11203
* Fix AsynchronousTask.removeStartListener() and removeExitListener() to returnZac Medico2008-07-271-0/+4
| | | | | | early if there are no listeners. svn path=/main/trunk/; revision=11202
* Split out an apply_priorities() function to apply nice and ionice settings.Zac Medico2008-07-261-10/+15
| | | | svn path=/main/trunk/; revision=11198
* Bug #232924 - When the user specifies a non-existent set, display a list ofZac Medico2008-07-261-4/+21
| | | | | | existing sets. svn path=/main/trunk/; revision=11197
* Suppress "for /" and "to /" in status messages when ROOT=/. Thanks toZac Medico2008-07-251-9/+15
| | | | | | Thargor for the suggestion. svn path=/main/trunk/; revision=11191
* Fix PORTAGE_BIN_PATH typo in EbuildFetcher._start().Zac Medico2008-07-251-1/+1
| | | | svn path=/main/trunk/; revision=11190
* Cancel prefetchers if they're the only reason the main poll loop is stillZac Medico2008-07-251-0/+7
| | | | | | running. svn path=/main/trunk/; revision=11185
* When in background mode and there is a single failure, dump the whole buildZac Medico2008-07-241-9/+40
| | | | | | log for convenience. svn path=/main/trunk/; revision=11184
* * Refer user to make.conf(5) if PORTAGE_IONICE_COMMAND fails.Zac Medico2008-07-241-0/+1
| | | | | | | * Document that PORTAGE_IONICE_COMMAND can be disabled by setting it to an empty string. svn path=/main/trunk/; revision=11183
* Bug #206773 - Add a new PORTAGE_IONICE_COMMAND variable that emerge usesZac Medico2008-07-241-0/+25
| | | | | | | | | to adjust ionice priority, similar to PORTAGE_NICENESS but used more like FETCHCOMMAND since so that portage doesn't have to know anything about ionice options. The command should include a \${PID} place-holder to be substituted with an integer pid. svn path=/main/trunk/; revision=11182
* Fix --depclean/--prune regressions reported by selkin:Zac Medico2008-07-231-2/+9
| | | | | | | | | * Make --with-bdeps default to "y" for removal actions. * Treat unsatisfied build time dependencies as "soft" for removal actions, even when --with-bdeps=y. svn path=/main/trunk/; revision=11176
* Add GENTOO_MIRRORS to the variables exported by EbuildFetcher.v2.2_rc2Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11173
* Make --fetchonly disable background mode.Zac Medico2008-07-231-2/+6
| | | | svn path=/main/trunk/; revision=11170
* Handle UnsatisfiedResumeDep in Scheduler._calc_resume_list().Zac Medico2008-07-221-4/+44
| | | | svn path=/main/trunk/; revision=11169
* Update --depclean and --prune, removing warnings about libraries since thoseZac Medico2008-07-222-29/+39
| | | | | | are now automatically accounted for. svn path=/main/trunk/; revision=11168