summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/porttree.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-05 22:20:07 -0700
committerZac Medico <zmedico@gentoo.org>2012-10-05 22:20:07 -0700
commite9ea4bc74f16e6c120fdf9c1926dfcb7de7bd135 (patch)
treea18dc9f2e936f799bf91afcf3d554b453f7ac4e4 /pym/portage/dbapi/porttree.py
parent14230dd467c4f0136cb99e83f2d610de166b772b (diff)
downloadportage-e9ea4bc74f16e6c120fdf9c1926dfcb7de7bd135.tar.gz
portage-e9ea4bc74f16e6c120fdf9c1926dfcb7de7bd135.tar.bz2
portage-e9ea4bc74f16e6c120fdf9c1926dfcb7de7bd135.zip
Substitute EventLoop for PollScheduler.
EventLoop suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
Diffstat (limited to 'pym/portage/dbapi/porttree.py')
-rw-r--r--pym/portage/dbapi/porttree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index b1a81b271..dba0ef53d 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -33,8 +33,8 @@ from portage import os
from portage import _encodings
from portage import _unicode_encode
from portage import OrderedDict
+from portage.util._eventloop.EventLoop import EventLoop
from _emerge.EbuildMetadataPhase import EbuildMetadataPhase
-from _emerge.PollScheduler import PollScheduler
import os as _os
import sys
@@ -96,7 +96,7 @@ class portdbapi(dbapi):
# this purpose because doebuild makes many changes to the config
# instance that is passed in.
self.doebuild_settings = config(clone=self.settings)
- self._scheduler = PollScheduler().sched_iface
+ self._event_loop = EventLoop(main=False)
self.depcachedir = os.path.realpath(self.settings.depcachedir)
if os.environ.get("SANDBOX_ON") == "1":
@@ -448,7 +448,7 @@ class portdbapi(dbapi):
proc = EbuildMetadataPhase(cpv=mycpv,
ebuild_hash=ebuild_hash, portdb=self,
- repo_path=mylocation, scheduler=self._scheduler,
+ repo_path=mylocation, scheduler=self._event_loop,
settings=self.doebuild_settings)
proc.start()