summaryrefslogtreecommitdiffstats
path: root/pym/portage
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* 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).
* 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).
* 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-231-2/+2
|
* 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-191-0/+0
|
* Handle closed sys.__stdin__, for multiprocessingZac Medico2012-12-155-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_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
|
* Avoid duplicate desktop QA notice, bug #446136Zac Medico2012-12-051-1/+1
|
* getmaskingstatus: fix ~* KEYWORDS handlingZac Medico2012-12-051-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 445506Zac Medico2012-12-011-0/+79
|
* portage.util.movefile.movefile(): Try to preserve mtime of symlinks with ↵Arfrever Frehtes Taifersar Arahesis2012-11-301-3/+9
| | | | Python >=3.3.
* Fix return value of portage.util.movefile.movefile() for symlinks with ↵Arfrever Frehtes Taifersar Arahesis2012-11-291-2/+5
| | | | Python >=3.3.
* test_portdb_cache: use python -WiZac Medico2012-11-271-2/+2
|
* portdbapi: DeprecationWarning for 'pms' cacheZac Medico2012-11-274-5/+14
|
* egencache: enable md5-dict format by defaultZac Medico2012-11-272-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 Medico2012-11-266-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 Medico2012-11-261-2/+2
|
* similar_name_search: fix lower/upper case bugsZac Medico2012-11-251-4/+4
|
* Update doc string of portage.dep.extract_affecting_use().Arfrever Frehtes Taifersar Arahesis2012-11-251-5/+5
|
* depgraph: split out similar_name_search funcZac Medico2012-11-241-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 Arahesis2012-11-247-2/+160
|
* EventLoop: handle Linux 2.4 errno 38 for epollZac Medico2012-11-221-8/+19
|
* flat_hash.__iter__: validate keysZac Medico2012-11-201-3/+7
|
* Add Package.eapi property.Zac Medico2012-11-174-5/+5
|
* Fix PORTAGE_BUILDIR_LOCKED typo.Arfrever Frehtes Taifersar Arahesis2012-11-164-8/+8
|
* EAPI="5-progress": Add package_manager_build_user() and ↵Arfrever Frehtes Taifersar Arahesis2012-11-162-5/+20
| | | | package_manager_build_group().
* fixdbentries: add deprecation warningZac Medico2012-11-151-0/+5
| | | | It's unused since commit c974a023882485b8eeae35bac35c1f00d1a0725b.
* EAPI="4-python" and EAPI="5-progress": Add support for use.aliases and ↵Arfrever Frehtes Taifersar Arahesis2012-11-154-7/+254
| | | | package.use.aliases.
* validate_desktop_entry: ignore Encoding keyZac Medico2012-11-141-0/+1
| | | | See bug #443100.
* vardbapi.move_ent: rm wrong fixdbentries callZac Medico2012-11-141-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 prefixZac Medico2012-11-141-3/+9
|
* test_update_dbentry: test bug #367215Zac Medico2012-11-141-0/+45
|
* update_dbentry: avoid self-blocker, bug #367215Zac Medico2012-11-141-1/+11
|
* Pass settings to _pkg_str constructor.Zac Medico2012-11-142-4/+11
| | | | Forgotten in commit 0b4e6c27e87e57fac09fa28d3ed1320cb6a83ad9.
* update_dbentry: add parent arg for bug #367215Zac Medico2012-11-135-18/+31
|