summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* display_autounmask: highlight config changesZac Medico2012-02-101-4/+12
| | | | | | As suggested here: http://archives.gentoo.org/gentoo-dev/msg_06a47ad55977f4d16bfe18769c6c38b8.xml
* GlibEventLoop: use gi.repository.GLibZac Medico2012-02-101-5/+1
|
* PollScheduler: add generic _main_loop()Zac Medico2012-02-104-27/+30
|
* Scheduler: cleanup timeout after _main_loopZac Medico2012-02-101-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 dirZac Medico2012-02-103-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 Medico2012-02-097-23/+38
|
* EventLoop: name poll constants like glib'sZac Medico2012-02-092-1/+14
| | | | | | It's conceivable the constants could be implementation dependent, so use glib's generic IO_* names rather than the POLL* names which are associated specifically with python's select.poll object.
* EventLoop: inherit PollConstantsZac Medico2012-02-091-1/+1
|
* Add global_event_loop() and GlibEventLoop.Zac Medico2012-02-094-2/+60
| | | | | | 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 orderZac Medico2012-02-091-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 IpcDaemonTestCaseZac Medico2012-02-091-1/+3
| | | | | Use a StopIteration exception to jump out of EventLoop.iterate() before the poll loop.
* EventLoop: fix inverted may_block logicZac Medico2012-02-081-2/+2
| | | | This caused emerge to consume 100% cpu.
* Move EventLoop to a separate file.Zac Medico2012-02-083-366/+375
|
* Use AbstractPollTask._wait_loop() more.Zac Medico2012-02-083-13/+4
|
* MergeProcess: handle POLLHUP from elog pipeZac Medico2012-02-081-0/+7
|
* PollScheduler: remove _poll_loopZac Medico2012-02-083-33/+13
| | | | | We can use iteration() instead, and _poll_loop's exit behavior doesn't seem practical to emulate with glib.MainLoop.
* test_poll: use TaskSchedulerZac Medico2012-02-081-7/+7
|
* PollScheduler: remove EventLoop._schedule hookZac Medico2012-02-081-12/+5
| | | | | PollScheduler and subclasses be should already be calling self._schedule() when necessary.
* Scheduler: tweak _add_prefetchersZac Medico2012-02-081-8/+6
| | | | | Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the first prefetcher is started as soon as it's added to the task queue.
* SequentialTaskQueue: use finally for _schedulingZac Medico2012-02-081-33/+13
| | | | Also, remove unecessary _dirty flag.
* IpcDaemonTestCase: init start_time earlierZac Medico2012-02-081-2/+2
| | | | | | Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the SequentialTaskQueue.add() method starts the task immediately, so initialize start_time before that happens.
* SequentialTaskQueue: schedule automaticallyZac Medico2012-02-082-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_scheduleZac Medico2012-02-081-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 glibZac Medico2012-02-082-23/+23
|
* PollScheduler: don't inherit EventLoopZac Medico2012-02-085-29/+31
|
* PollScheduler: split out EventLoop base classZac Medico2012-02-081-106/+116
|
* AbstractPollTask: use timeout_addZac Medico2012-02-071-14/+11
|
* QueueScheduler: tweak timeout handlingZac Medico2012-02-071-13/+14
|
* PollScheduler: remove _schedule_waitZac Medico2012-02-072-48/+2
|
* QueueScheduler: use timeout_addZac Medico2012-02-071-34/+17
|
* AbstractPollTask: add _wait_loop methodZac Medico2012-02-072-6/+25
|
* Use PollScheduler iteration method.Zac Medico2012-02-075-17/+17
|
* PollScheduler: add iteration methodZac Medico2012-02-072-12/+27
|
* Scheduler: use idle_add, not _poll overrideZac Medico2012-02-071-2/+4
|
* PollScheduler: implement idle_addZac Medico2012-02-071-1/+45
|
* PollScheduler: glib.io_add_watch() compatibilityZac Medico2012-02-078-16/+53
|
* PollScheduler: timeouts regardless of IO eventsZac Medico2012-02-073-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 Medico2012-02-072-9/+34
|
* AsynchronousTask: merge _waiting from subclassZac Medico2012-02-072-7/+10
|
* PollScheduler: add timeout_add like glib'sZac Medico2012-02-072-8/+89
| | | | | This will be useful as a substitute for recursion, in order to avoid hitting the recursion limit for bug #402335.
* spawn: assert that fork returns int typeZac Medico2012-02-061-1/+4
|
* Remove portage.const._ENABLE_XATTR.v2.2.0_alpha85Zac Medico2012-02-042-8/+2
|
* repoman: support git commit --gpg-signZac Medico2012-02-041-2/+8
| | | | | | | In order to sign commits with git, you will need Git >=1.7.9 and your key will have to be configured by `git config user.signingkey key_id`. Also, the repository will need to have "sign-commits = true" in metadata/layout.conf. This will fix bug #333687.
* Honor repos.conf for overlay priority, bug 402099Daniel Hornung2012-02-031-2/+2
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* LinkageMapELF: handle null bytes in NEEDED.ELF.2Zac Medico2012-01-311-0/+7
| | | | | This avoids an error from os.stat: TypeError: must be encoded string without NULL bytes, not str
* Use consistent indentation in output of `emerge -p --columns ${package}`Arfrever Frehtes Taifersar Arahesis2012-01-281-2/+2
| | | | regardless of ROOT.
* Delete needless parentheses.Arfrever Frehtes Taifersar Arahesis2012-01-281-5/+5
|
* Don't print ::${repository} for main repository in output ofArfrever Frehtes Taifersar Arahesis2012-01-283-31/+39
| | | | | `emerge -pv ${package}` by default. Add --verbose-main-repo-display option, which enables printing ::${repository} for main repository.
* Apply INSTALL_MASK prior to reading the treeBrian Harring2012-01-271-9/+9
| | | | | | | | If this isn't done, collision-protect uses the old cached filelist, leading to it complaining about things that INSTALL_MASK sorted already. BUGS=chromium-os:25060 TEST=emerge sudo && emerge chromeos-base
* Fix display of installed version for packages, which have multiple slotsArfrever Frehtes Taifersar Arahesis2012-01-231-2/+3
| | | | installed. Follow-up to commit 8118be36842a2db2eb72538e21a3b343773b3365.