From: Zac Medico Date: Sun, 5 Sep 2010 19:52:56 +0000 (-0700) Subject: Make dblink._merge() use a PollScheduler instance directly since X-Git-Tag: v2.2_rc76~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0b3f768d853f262db2b6caee46263b3c5b23ecd5;p=portage.git Make dblink._merge() use a PollScheduler instance directly since TaskScheduler isn't really needed. --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 25956f198..c5c772949 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -51,7 +51,7 @@ from portage import _selinux_merge from portage import _unicode_decode from portage import _unicode_encode -from _emerge.TaskScheduler import TaskScheduler +from _emerge.PollScheduler import PollScheduler from _emerge.MiscFunctionsProcess import MiscFunctionsProcess import codecs @@ -3859,14 +3859,13 @@ class dblink(object): phase = 'die_hooks' if self._scheduler is None: - task_scheduler = TaskScheduler() ebuild_phase = MiscFunctionsProcess( background=False, commands=[phase], - scheduler=task_scheduler.sched_iface, + scheduler=PollScheduler().sched_iface, settings=self.settings) - task_scheduler.add(ebuild_phase) - task_scheduler.run() + ebuild_phase.start() + ebuild_phase.wait() else: self._scheduler.dblinkEbuildPhase( self, mydbapi, myebuild, phase)