Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | AsynchronousTask: don't wait for exit status | Zac Medico | 2012-02-13 | 8 | -11/+29 |
| | | | | | | Synchronous waiting for status is not supported, since it would be vulnerable to hitting the recursion limit when a large number of tasks need to be terminated simultaneously, like in bug #402335. | ||||
* | PollScheduler: use idle_add to check termination | Zac Medico | 2012-02-12 | 2 | -22/+41 |
| | | | | | | | | | This fixes a regression in termination signal handling since commit 8c1fcf5a9ba9fa4d406a4d0cc284fe73a84f5a63, which cause termination signals to be ignored until a running job had exited. This regression is not really noticeable for Ctrl-C handling, since in that case the SIGINT propagets to subprocesses, causing them to exit and trigger a _schedule() call whichtriggers a termination check. | ||||
* | Scheduler: simplify _sched_iface constructionv2.2.0_alpha86 | Zac Medico | 2012-02-11 | 1 | -14/+3 |
| | |||||
* | EbuildIpcDaemon: handle POLLHUP, bug #401919 | Zac Medico | 2012-02-11 | 1 | -0/+24 |
| | |||||
* | AbstractPollTask: merge _wait from subclass | Zac Medico | 2012-02-11 | 2 | -12/+6 |
| | |||||
* | QueueScheduler: tweak run loop logic | Zac Medico | 2012-02-11 | 1 | -5/+5 |
| | |||||
* | MetadataRegen: use porttrees | Zac Medico | 2012-02-11 | 1 | -1/+4 |
| | |||||
* | _emerge.MetadataRegen.MetadataRegen._iter_metadata_processes(): | Arfrever Frehtes Taifersar Arahesis | 2012-02-11 | 1 | -21/+23 |
| | | | | Regenerate metadata for given cpv in each repository. | ||||
* | PollScheduler: return None from _schedule_tasks | Zac Medico | 2012-02-11 | 3 | -15/+12 |
| | | | | The _keep_scheduling() template method is used instead. | ||||
* | QueueScheduler: timeout compat for GlibEventLoop | Zac Medico | 2012-02-11 | 1 | -10/+19 |
| | | | | | | | | Raising StopIteration doesn't work with GlibEventLoop, since it catches all exceptions and logs them. So, just use a boolean expression to terminate the while loop. This depends on commit dcb9fab8463996542d06d29bc383f5933bf0d677 so that IpcDaemonTestCase timeouts work correctly with both EventLoop and GlibEventLoop. | ||||
* | display_autounmask: highlight config changes | Zac Medico | 2012-02-10 | 1 | -4/+12 |
| | | | | | | As suggested here: http://archives.gentoo.org/gentoo-dev/msg_06a47ad55977f4d16bfe18769c6c38b8.xml | ||||
* | PollScheduler: add generic _main_loop() | Zac Medico | 2012-02-10 | 4 | -27/+30 |
| | |||||
* | Scheduler: cleanup timeout after _main_loop | Zac Medico | 2012-02-10 | 1 | -2/+3 |
| | | | | | The way we don't leave an leak a reference to the Scheduler instance in the global EventLoop instance. | ||||
* | EbuildMerge: add exit_hook to unlock build dir | Zac Medico | 2012-02-10 | 3 | -5/+7 |
| | | | | | | | | This is needed since commit 7a6c34cc6bd6eb20a97e05347f87a0157f4ae58a in order to ensure that the build dir is unlocked before exit listeners are called. It fixes failures in catalyst stage 1 builds where two instances of the same package, built sequentially for separate roots, interfere with eachother's build dir lock. | ||||
* | Use IO_* constants where appropriate. | Zac Medico | 2012-02-09 | 6 | -19/+35 |
| | |||||
* | Add global_event_loop() and GlibEventLoop. | Zac Medico | 2012-02-09 | 1 | -2/+2 |
| | | | | | | This causes all PollScheduler instances within a given process to share a singleton EventLoop instance, and also makes it possible to swap in glib's main loop for all portage event loops in the main process. | ||||
* | AsynchronousTask: exit listeners reverse order | Zac Medico | 2012-02-09 | 1 | -1/+5 |
| | | | | | | This should fix a Scheduler hang which is triggered when that merge queue, a SequentialTaskQueue, doesn't decrement its merge count until after other exit listeners have already run. | ||||
* | QueueScheduler: fix for IpcDaemonTestCase | Zac Medico | 2012-02-09 | 1 | -1/+3 |
| | | | | | Use a StopIteration exception to jump out of EventLoop.iterate() before the poll loop. | ||||
* | Move EventLoop to a separate file. | Zac Medico | 2012-02-08 | 1 | -366/+1 |
| | |||||
* | Use AbstractPollTask._wait_loop() more. | Zac Medico | 2012-02-08 | 3 | -13/+4 |
| | |||||
* | PollScheduler: remove _poll_loop | Zac Medico | 2012-02-08 | 3 | -33/+13 |
| | | | | | We can use iteration() instead, and _poll_loop's exit behavior doesn't seem practical to emulate with glib.MainLoop. | ||||
* | PollScheduler: remove EventLoop._schedule hook | Zac Medico | 2012-02-08 | 1 | -12/+5 |
| | | | | | PollScheduler and subclasses be should already be calling self._schedule() when necessary. | ||||
* | Scheduler: tweak _add_prefetchers | Zac Medico | 2012-02-08 | 1 | -8/+6 |
| | | | | | Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the first prefetcher is started as soon as it's added to the task queue. | ||||
* | SequentialTaskQueue: use finally for _scheduling | Zac Medico | 2012-02-08 | 1 | -33/+13 |
| | | | | Also, remove unecessary _dirty flag. | ||||
* | SequentialTaskQueue: schedule automatically | Zac Medico | 2012-02-08 | 2 | -8/+11 |
| | | | | | | | This is needed to compensate for the removal of _idle_schedule in commit 8c1fcf5a9ba9fa4d406a4d0cc284fe73a84f5a63, so that the Scheduler's task queues operate without needing their schedule methods called inside Scheduler._schedule_tasks(). | ||||
* | Scheduler: remove _idle_schedule | Zac Medico | 2012-02-08 | 1 | -5/+0 |
| | | | | | This shouldn't be needed, since _schedule() should already be called automatically when there are any relevant state changes. | ||||
* | EventLoop: use same method names as glib | Zac Medico | 2012-02-08 | 2 | -23/+23 |
| | |||||
* | PollScheduler: don't inherit EventLoop | Zac Medico | 2012-02-08 | 4 | -28/+30 |
| | |||||
* | PollScheduler: split out EventLoop base class | Zac Medico | 2012-02-08 | 1 | -106/+116 |
| | |||||
* | AbstractPollTask: use timeout_add | Zac Medico | 2012-02-07 | 1 | -14/+11 |
| | |||||
* | QueueScheduler: tweak timeout handling | Zac Medico | 2012-02-07 | 1 | -13/+14 |
| | |||||
* | PollScheduler: remove _schedule_wait | Zac Medico | 2012-02-07 | 2 | -48/+2 |
| | |||||
* | QueueScheduler: use timeout_add | Zac Medico | 2012-02-07 | 1 | -34/+17 |
| | |||||
* | AbstractPollTask: add _wait_loop method | Zac Medico | 2012-02-07 | 2 | -6/+25 |
| | |||||
* | Use PollScheduler iteration method. | Zac Medico | 2012-02-07 | 5 | -17/+17 |
| | |||||
* | PollScheduler: add iteration method | Zac Medico | 2012-02-07 | 2 | -12/+27 |
| | |||||
* | Scheduler: use idle_add, not _poll override | Zac Medico | 2012-02-07 | 1 | -2/+4 |
| | |||||
* | PollScheduler: implement idle_add | Zac Medico | 2012-02-07 | 1 | -1/+45 |
| | |||||
* | PollScheduler: glib.io_add_watch() compatibility | Zac Medico | 2012-02-07 | 7 | -16/+51 |
| | |||||
* | PollScheduler: timeouts regardless of IO events | Zac Medico | 2012-02-07 | 3 | -56/+59 |
| | | | | | | Now PollScheduler will execute timeouts predictably, even when there no IO events being generated. This allows the Scheduler's display updates to be handled via timeout_add. | ||||
* | Use timeout_add to avoid recursion, bug #402335. | Zac Medico | 2012-02-07 | 2 | -9/+34 |
| | |||||
* | AsynchronousTask: merge _waiting from subclass | Zac Medico | 2012-02-07 | 2 | -7/+10 |
| | |||||
* | PollScheduler: add timeout_add like glib's | Zac Medico | 2012-02-07 | 2 | -8/+89 |
| | | | | | This will be useful as a substitute for recursion, in order to avoid hitting the recursion limit for bug #402335. | ||||
* | Use consistent indentation in output of `emerge -p --columns ${package}` | Arfrever Frehtes Taifersar Arahesis | 2012-01-28 | 1 | -2/+2 |
| | | | | regardless of ROOT. | ||||
* | Delete needless parentheses. | Arfrever Frehtes Taifersar Arahesis | 2012-01-28 | 1 | -5/+5 |
| | |||||
* | Don't print ::${repository} for main repository in output of | Arfrever Frehtes Taifersar Arahesis | 2012-01-28 | 3 | -31/+39 |
| | | | | | `emerge -pv ${package}` by default. Add --verbose-main-repo-display option, which enables printing ::${repository} for main repository. | ||||
* | Fix display of installed version for packages, which have multiple slots | Arfrever Frehtes Taifersar Arahesis | 2012-01-23 | 1 | -2/+3 |
| | | | | installed. Follow-up to commit 8118be36842a2db2eb72538e21a3b343773b3365. | ||||
* | Make the second part of_emerge.resolver.output.Display.verbose_size() | Arfrever Frehtes Taifersar Arahesis | 2012-01-22 | 1 | -26/+24 |
| | | | | | conditional on self.quiet_repo_display instead of earlier returning if self.quiet_repo_display is False. No functional changes. | ||||
* | Print [${old_version}::${old_repository}] in output of `emerge -pv ${package}` | Arfrever Frehtes Taifersar Arahesis | 2012-01-22 | 1 | -1/+3 |
| | | | | | when ${old_version} is the same as ${new_version}, but ${old_repository} is different than ${new_repository}. | ||||
* | Print ::${repository} in output of `emerge -pv ${package}` by default. | Arfrever Frehtes Taifersar Arahesis | 2012-01-21 | 3 | -18/+46 |
| | | | | Add --quiet-repo-display option, which enables previous, more quiet output. |