Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | EventLoop.iteration: no IO blocking if possible | Zac Medico | 2012-12-30 | 1 | -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. | |||||
* | Use ctypes in subprocess for bug #448858. | Zac Medico | 2012-12-30 | 2 | -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). | |||||
* | Add run_main_scheduler helper function. | Zac Medico | 2012-12-28 | 1 | -0/+41 | |
| | ||||||
* | Use 'with file' more. | Zac Medico | 2012-12-28 | 3 | -21/+16 | |
| | | | | This helps to minimize ResourceWarning triggered by ^C with python3. | |||||
* | _MergeProcess: tweak merge-sync library lookup | Zac Medico | 2012-12-28 | 1 | -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 #448858 | Zac Medico | 2012-12-28 | 1 | -6/+4 | |
| | ||||||
* | PipeReaderBlockingIO handle threading ImportError | Zac Medico | 2012-12-27 | 2 | -1/+6 | |
| | ||||||
* | EventLoop.iteration(): avoid busy waiting | Zac Medico | 2012-12-27 | 1 | -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 Medico | 2012-12-27 | 3 | -3/+162 | |
| | ||||||
* | merge-sync: handle PyPy syncfs fail, bug #446610 | Zac Medico | 2012-12-26 | 1 | -9/+14 | |
| | ||||||
* | EventLoop: thread-safe idle_add and timeout_add | Zac Medico | 2012-12-26 | 1 | -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). | |||||
* | vardbapi: tweak deprecated constructor param | Zac Medico | 2012-12-24 | 1 | -4/+5 | |
| | ||||||
* | binarytree: tweak deprecated constructor param | Zac Medico | 2012-12-24 | 1 | -5/+5 | |
| | ||||||
* | porttree.py: tweak deprecated constructor params | Zac Medico | 2012-12-24 | 1 | -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 Arahesis | 2012-12-23 | 1 | -2/+2 | |
| | ||||||
* | config: clarify that default target_root is / | Zac Medico | 2012-12-19 | 1 | -1/+2 | |
| | ||||||
* | Rename a private module in preparation for extending its functionality. | Arfrever Frehtes Taifersar Arahesis | 2012-12-19 | 1 | -0/+0 | |
| | ||||||
* | Handle closed sys.__stdin__, for multiprocessing | Zac Medico | 2012-12-15 | 5 | -5/+16 | |
| | | | | | | | 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. | |||||
* | Add QA_CONFIGURE_OPTIONS variable.v2.2.0_alpha148 | Zac Medico | 2012-12-11 | 1 | -4/+29 | |
| | ||||||
* | Disallow SLOT="${slot}/${subslot}=" in ebuilds. | Arfrever Frehtes Taifersar Arahesis | 2012-12-11 | 1 | -1/+1 | |
| | ||||||
* | dblink._elog_process: obey phasefilter arg | Zac Medico | 2012-12-10 | 1 | -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 #446136 | Zac Medico | 2012-12-10 | 1 | -0/+3 | |
| | ||||||
* | Avoid duplicate desktop QA notice, bug #446136 | Zac Medico | 2012-12-05 | 1 | -1/+1 | |
| | ||||||
* | getmaskingstatus: fix ~* KEYWORDS handling | Zac Medico | 2012-12-05 | 1 | -0/+7 | |
| | | | | | | | | | Since commit 9144faeb653b9f1dbe74c69f85cd48f26761aa2f, KeywordsManager.getMissingKeywords() has had support for ~* in KEYWORDS being matched by any unstable keyword in ACCEPT_KEYWORDS. However, getmaskingstatus still returned "missing keyword" for this case. Now, getmaskingstatus is fixed so that it won't erroneously return "missing keyword" in this case. | |||||
* | emerge --depclean: rm unavailable slot bug 445506 | Zac Medico | 2012-12-01 | 1 | -0/+79 | |
| | ||||||
* | portage.util.movefile.movefile(): Try to preserve mtime of symlinks with ↵ | Arfrever Frehtes Taifersar Arahesis | 2012-11-30 | 1 | -3/+9 | |
| | | | | Python >=3.3. | |||||
* | Fix return value of portage.util.movefile.movefile() for symlinks with ↵ | Arfrever Frehtes Taifersar Arahesis | 2012-11-29 | 1 | -2/+5 | |
| | | | | Python >=3.3. | |||||
* | test_portdb_cache: use python -Wi | Zac Medico | 2012-11-27 | 1 | -2/+2 | |
| | ||||||
* | portdbapi: DeprecationWarning for 'pms' cache | Zac Medico | 2012-11-27 | 4 | -5/+14 | |
| | ||||||
* | egencache: enable md5-dict format by default | Zac Medico | 2012-11-27 | 2 | -7/+14 | |
| | | | | | | | | | | WARNING: Portage versions prior to portage-2.1.11.14 will NOT recognize the 'md5-dict' format unless it is explicitly listed in metadata/layout.conf (refer to portage(5) for example usage). WARNING: For backward compatibility, the obsolete 'pms' cache format will still be generated by default if the metadata/cache/ directory exists in the repository. | |||||
* | Rename Package.metadata to _metadata. | Zac Medico | 2012-11-26 | 6 | -9/+9 | |
| | | | | | The raw metadata is considered a private low-level internal. This makes the Package class consistent with the _pkg_str class. | |||||
* | Use Package.repo where appropriate. | Zac Medico | 2012-11-26 | 1 | -2/+2 | |
| | ||||||
* | similar_name_search: fix lower/upper case bugs | Zac Medico | 2012-11-25 | 1 | -4/+4 | |
| | ||||||
* | Update doc string of portage.dep.extract_affecting_use(). | Arfrever Frehtes Taifersar Arahesis | 2012-11-25 | 1 | -5/+5 | |
| | ||||||
* | depgraph: split out similar_name_search func | Zac Medico | 2012-11-24 | 1 | -0/+57 | |
| | | | | | | This will allow the code to be re-used for bug #444596. Copyright begins in 2011 since that's when the code for this feature was first added in commit aa78cc8da18015b7d1e4eec277b5a7f940fe357c. | |||||
* | EAPI="5-progress": Add automatic unpack dependencies. | Arfrever Frehtes Taifersar Arahesis | 2012-11-24 | 7 | -2/+160 | |
| | ||||||
* | EventLoop: handle Linux 2.4 errno 38 for epoll | Zac Medico | 2012-11-22 | 1 | -8/+19 | |
| | ||||||
* | flat_hash.__iter__: validate keys | Zac Medico | 2012-11-20 | 1 | -3/+7 | |
| | ||||||
* | Add Package.eapi property. | Zac Medico | 2012-11-17 | 4 | -5/+5 | |
| | ||||||
* | Fix PORTAGE_BUILDIR_LOCKED typo. | Arfrever Frehtes Taifersar Arahesis | 2012-11-16 | 4 | -8/+8 | |
| | ||||||
* | EAPI="5-progress": Add package_manager_build_user() and ↵ | Arfrever Frehtes Taifersar Arahesis | 2012-11-16 | 2 | -5/+20 | |
| | | | | package_manager_build_group(). | |||||
* | fixdbentries: add deprecation warning | Zac Medico | 2012-11-15 | 1 | -0/+5 | |
| | | | | It's unused since commit c974a023882485b8eeae35bac35c1f00d1a0725b. | |||||
* | EAPI="4-python" and EAPI="5-progress": Add support for use.aliases and ↵ | Arfrever Frehtes Taifersar Arahesis | 2012-11-15 | 4 | -7/+254 | |
| | | | | package.use.aliases. | |||||
* | validate_desktop_entry: ignore Encoding key | Zac Medico | 2012-11-14 | 1 | -0/+1 | |
| | | | | See bug #443100. | |||||
* | vardbapi.move_ent: rm wrong fixdbentries call | Zac Medico | 2012-11-14 | 1 | -2/+1 | |
| | | | | | | The parent argument was wrong, as reported in bug #367215 comment #22, and this call was uneeded anyway because dbapi.update_ents handles it with update_dbentries. | |||||
* | Atom.without_use: preserve blocker prefix | Zac Medico | 2012-11-14 | 1 | -3/+9 | |
| | ||||||
* | test_update_dbentry: test bug #367215 | Zac Medico | 2012-11-14 | 1 | -0/+45 | |
| | ||||||
* | update_dbentry: avoid self-blocker, bug #367215 | Zac Medico | 2012-11-14 | 1 | -1/+11 | |
| | ||||||
* | Pass settings to _pkg_str constructor. | Zac Medico | 2012-11-14 | 2 | -4/+11 | |
| | | | | Forgotten in commit 0b4e6c27e87e57fac09fa28d3ed1320cb6a83ad9. | |||||
* | update_dbentry: add parent arg for bug #367215 | Zac Medico | 2012-11-13 | 5 | -18/+31 | |
| |