summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi
Commit message (Collapse)AuthorAgeFilesLines
* _new_backup_path: fix TypeError, bug #453892Zac Medico2013-01-241-1/+1
|
* Package: filter built USE for bug #453400Zac Medico2013-01-231-1/+3
| | | | | The enabled flags must be consistent with implicit IUSE, in order to avoid potential inconsistencies in USE dep matching (see bug #453400).
* Fix default use match for implicit IUSE.v2.2.0_alpha159Zac Medico2013-01-211-4/+12
| | | | | | This will fix bug #453400, which was triggered by inconsistency between the enabled USE and the effective missing_disabled set used in matching logic, due to implicit IUSE.
* Add workaround for Python 2.6.4 issue 4978Zac Medico2013-01-182-3/+4
| | | | | Avoid "TypeError: keywords must be strings" issue triggered by unicode_literals: http://bugs.python.org/issue4978
* Use unicode_literals more.Zac Medico2013-01-188-19/+34
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* Use 'with file' more.Zac Medico2013-01-171-61/+46
| | | | This helps to minimize ResourceWarning triggered by ^C with python3.
* Use EventLoop, no SchedulerInterface if possible.Zac Medico2013-01-101-2/+2
|
* portdbapi.cp_all(): add reverse sort parameterZac Medico2013-01-061-2/+3
|
* Handle os.write() return code with loop.Zac Medico2013-01-051-1/+3
|
* BinpkgVerifier: use async FileDigesterZac Medico2013-01-051-13/+25
|
* Enable FD_CLOEXEC for non-blocking pipes.Zac Medico2013-01-031-1/+10
|
* portage._internal_caller: use global_event_loopZac Medico2013-01-031-5/+10
| | | | | It's more efficient to use global_event_loop than a local EventLoop instance, so do that when we know it's safe.
* Add portage._internal_caller var, and use it.Zac Medico2013-01-031-2/+2
|
* portdbapi: use global_event_loop when safeZac Medico2013-01-031-1/+12
|
* 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).
* _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.
* merge-sync: handle PyPy syncfs fail, bug #446610Zac Medico2012-12-261-9/+14
|
* 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
|
* 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
|
* portdbapi: DeprecationWarning for 'pms' cacheZac Medico2012-11-271-0/+7
|
* similar_name_search: fix lower/upper case bugsZac Medico2012-11-251-4/+4
|
* 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.
* Fix PORTAGE_BUILDIR_LOCKED typo.Arfrever Frehtes Taifersar Arahesis2012-11-161-2/+2
|
* 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.
* Pass settings to _pkg_str constructor.Zac Medico2012-11-141-2/+5
| | | | Forgotten in commit 0b4e6c27e87e57fac09fa28d3ed1320cb6a83ad9.
* update_dbentry: add parent arg for bug #367215Zac Medico2012-11-133-7/+11
|
* dblink.mergeme(): use stack instead of recursionZac Medico2012-10-301-11/+11
| | | | | Maybe this helps reduce memory consumption when merging packages with lots of subdirectories like gentoo-sources (bug #320859).
* merge-sync: handle unmerge corner casesZac Medico2012-10-251-4/+13
| | | | | In dblink_merged_path we need to distinguish between existing and non-existing, since we need an existing path of syncfs.
* merge-sync: syncfs on parent of dir for unmergeZac Medico2012-10-251-7/+34
| | | | | | Note that we use a realpath and a regular stat here, since we want to follow any symlinks back to the real device where the real parent directory resides.
* MergeProcess: cache syncfs libc library lookupZac Medico2012-10-252-14/+20
|
* Add FEATURES=merge-sync, for bug #439584.Zac Medico2012-10-251-1/+40
|
* dblink: add hooks to sync disk for bug #439584Zac Medico2012-10-251-1/+58
|
* Handle InvalidData from _pkg_str.Zac Medico2012-10-171-1/+1
|
* Remove old binhost protocol for bug #438640.Zac Medico2012-10-171-69/+1
| | | | | The old protocol has been deprecated since portage-2.1.6 (2009), so it should be completely irrelevant now.
* bintree/portree: fix getslot for EAPI 5 sub-slotZac Medico2012-10-172-8/+4
|
* vartree.py: account for EAPI 5 sub-slot in SLOTZac Medico2012-10-171-16/+18
|
* _parse_uri_map: preserve order of URIsZac Medico2012-10-081-3/+8
| | | | Returns a dict of tuples instead of a dict of sets.
* ForkProcess: set _exit finally block before forkZac Medico2012-10-081-75/+88
| | | | This is the most reliable way to handle the race condition.
* Show slot + repo for colliding packages.Zac Medico2012-10-071-3/+15
| | | | See bug #437516 for example.
* Substitute SchedulerInterface for PollScheduler.Zac Medico2012-10-071-3/+3
| | | | | | SchedulerInterface suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* Substitute EventLoop for PollScheduler.Zac Medico2012-10-053-11/+6
| | | | | EventLoop suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* PollScheduler: remove register/unregister methodsZac Medico2012-10-051-3/+3
| | | | | | | These methods were aliases for the EventLoop io_add_watch and source_remove methods. Migrating to the EventLoop method names allows an EventLoop instance to substitute for a PollScheduler inside subclasses of AbstractPollTask.
* EbuildFetcher/MergeProcess: inherit ForkProcessZac Medico2012-10-031-3/+3
| | | | | Also add missing __slots__ to ForkProcess. TODO: Share code between ForkProcess and MergeProcess.
* Handle KeyError when loading pickles.Zac Medico2012-09-281-1/+3
| | | | See http://forums.gentoo.org/viewtopic-t-938022.html for example.
* update_ents: use Package._dep_keysZac Medico2012-09-251-2/+2
|
* Add experimental EAPI 5-hdepend support.Ambroz Bizjak2012-09-244-8/+12
|