summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* EventLoop: enable FD_CLOEXEC on epoll fdZac Medico2013-01-031-0/+11
|
* portage._internal_caller: use global_event_loopZac Medico2013-01-034-15/+32
| | | | | It's more efficient to use global_event_loop than a local EventLoop instance, so do that when we know it's safe.
* SpawnProcess: support close_fdsZac Medico2013-01-031-2/+2
|
* _doebuild_spawn: disable close_fds for "depend"Zac Medico2013-01-031-1/+6
|
* spawn: add close_fds parameterZac Medico2013-01-031-5/+9
|
* runTests: portage._internal_caller = TrueZac Medico2013-01-031-0/+1
|
* Add portage._internal_caller var, and use it.Zac Medico2013-01-034-13/+11
|
* portdbapi: use global_event_loop when safeZac Medico2013-01-031-1/+12
|
* emerge --depclean: show atoms in verbose outputZac Medico2013-01-021-11/+17
|
* resume_depgraph: check for alternative installedZac Medico2013-01-023-15/+33
| | | | | | | When pruning packages from the merge list, only prune them if the relevant dependency is not satisfied by an alternative package which is already installed. This should fix bug #448176, and now there's also reasons logged for why a particular package is dropped.
* depgraph: dynamic deps parallel metadata regenZac Medico2013-01-012-8/+59
|
* FakeVartree: split _apply_dynamic_deps methodZac Medico2013-01-011-26/+39
| | | | | This will eventually be used for parallelization of aux_get/regen processes.
* repoman: usex check 4-python and 4-slot-abiZac Medico2013-01-011-1/+1
|
* repoman: handle EAPI 5 usex, bug #449678Zac Medico2013-01-011-4/+13
|
* Revert "AsynchronousLock: override _async_wait_cb"Zac Medico2013-01-011-3/+3
| | | | | | This reverts commit 83cfc04df383b56592b89f1dc58428c0e8d09925. This override could be bad if the base class needs to call _async_wait for some reason.
* AsynchronousLock: override _async_wait_cbZac Medico2013-01-011-3/+3
|
* test_echangelog: sync year with UpdateChangeLogZac Medico2012-12-311-5/+1
| | | | | The code has to be in sync in order to prevent erroneous test failures triggered by new year's day timezone differences.
* emerge --depclean: clarify unsatisfied atomsZac Medico2012-12-311-1/+6
| | | | | If the atom is unsatisfied due to a USE dep that's only visible in the unevaluated form, then display the unevaluated form.
* _LockThread: use thread-safe EventLoop.idle_add()Zac Medico2012-12-311-35/+8
|
* AsynchronousTask: _async_wait is thread-safeZac Medico2012-12-311-1/+1
|
* EventLoop.iteration: no IO blocking if possibleZac Medico2012-12-301-4/+18
| | | | | | | | Avoid blocking for IO if there are any timeout or idle callback events available to process. This will prevent starvation of the idle callbacks, which are much more common since commit a3100be184ba1cac2f672f0a1cadcf01690c6d3f. We don't want these idle callbacks to be delayed by long periods of IO blocking.
* AsynchronousTask: add _async_wait methodZac Medico2012-12-3011-19/+32
| | | | | | | | For cases where _start returns synchronously, this method is a convenient way to trigger an asynchronous call to self.wait() (in order to notify exit listeners), avoiding excessive event loop recursion (or stack overflow) that synchronous calling of exit listeners can cause.
* Use ctypes in subprocess for bug #448858.Zac Medico2012-12-302-33/+67
| | | | | | Isolate ctypes usage in a subprocess, in order to avoid potential problems with stale cached libraries as described in bug #448858, comment #14 (also see http://bugs.python.org/issue14597).
* emerge --select: add -w short optionZac Medico2012-12-292-2/+4
|
* Use run_main_scheduler where possible.Zac Medico2012-12-281-28/+4
|
* Add run_main_scheduler helper function.Zac Medico2012-12-281-0/+41
|
* Use 'with file' more.Zac Medico2012-12-283-21/+16
| | | | This helps to minimize ResourceWarning triggered by ^C with python3.
* _MergeProcess: tweak merge-sync library lookupZac Medico2012-12-281-2/+5
| | | | | | The library handle is no longer cached, since commit 9e37cca4f54260bd8c45a3041fcee00938c71649, so skip the LoadLibrary call and just call find_library instead.
* _ctypes: don't cache library, bug #448858Zac Medico2012-12-281-6/+4
|
* PipeReaderBlockingIO handle threading ImportErrorZac Medico2012-12-272-1/+6
|
* EventLoop.iteration(): avoid busy waitingZac Medico2012-12-271-14/+40
| | | | | | | | | | | | | | | | | | | In order to avoid blocking forever when may_block is True (the default), callers must be careful to ensure that at least one of the following conditions is met: 1) An event source or timeout is registered which is guaranteed to trigger at least on event (a call to an idle function only counts as an event if it returns a False value which causes it to be stop being called) 2) Another thread is guaranteed to call one of the thread-safe methods which notify iteration to stop waiting (such as idle_add or timeout_add). These rules ensure that iteration is able to block until an event arrives, without doing any busy waiting that would waste CPU time. This will fix busy waiting which would be triggered by PopenPipeBlockingIOTestCase when waiting for the thread from PipeReaderBlockingIO to call idle_add.
* Add PipeReaderBlockingIO, Jython experimentation.Zac Medico2012-12-273-3/+162
|
* merge-sync: handle PyPy syncfs fail, bug #446610Zac Medico2012-12-261-9/+14
|
* EventLoop: thread-safe idle_add and timeout_addZac Medico2012-12-261-68/+97
| | | | | | This may be useful for using threads to handle blocking IO with Jython, since Jython lacks the fcntl module which is needed for non-blocking IO (see http://bugs.jython.org/issue1074).
* emerge -h: add @ prefix to system and world setsZac Medico2012-12-241-1/+1
|
* vardbapi: tweak deprecated constructor paramZac Medico2012-12-241-4/+5
|
* binarytree: tweak deprecated constructor paramZac Medico2012-12-241-5/+5
|
* porttree.py: tweak deprecated constructor paramsZac Medico2012-12-241-4/+5
| | | | | | Trigger a DeprecationWarning even when None is passed in for one of the deprecated parameters, ensuring that any potentially unsafe usage triggers the warning.
* Support subslots in command line arguments.Arfrever Frehtes Taifersar Arahesis2012-12-233-4/+4
|
* config: clarify that default target_root is /Zac Medico2012-12-191-1/+2
|
* Rename a private module in preparation for extending its functionality.Arfrever Frehtes Taifersar Arahesis2012-12-192-1/+1
|
* depclean warning: count nested sets, bug #298298Zac Medico2012-12-171-3/+11
|
* depclean summary: count nested sets, bug #298298Zac Medico2012-12-171-4/+10
|
* Handle closed sys.__stdin__, for multiprocessingZac Medico2012-12-157-7/+18
| | | | | | | Buggy code in python's multiprocessing/process.py closes sys.stdin and reassigns it to open(os.devnull), but fails to update the corresponding __stdin__ reference. So, detect that case and handle it appropriately. The buggy code is visible in http://hg.python.org/lookup/r73708.
* makeopts_jobs is declared in multiprocessing, not eutils.Michał Górny2012-12-151-2/+8
|
* Add QA_CONFIGURE_OPTIONS variable.v2.2.0_alpha148Zac Medico2012-12-111-4/+29
|
* Disallow SLOT="${slot}/${subslot}=" in ebuilds.Arfrever Frehtes Taifersar Arahesis2012-12-111-1/+1
|
* dblink._elog_process: obey phasefilter argZac Medico2012-12-101-1/+4
| | | | | | This would make a difference when collecting messages for prerm/postrm when uninstalling the previous instance of a package that's been updated.
* MergeProcess: avoid duplicate elog, bug #446136Zac Medico2012-12-101-0/+3
|
* get_real_flag: handle implicit iusev2.2.0_alpha147Zac Medico2012-12-091-2/+5
|