From: Zac Medico Date: Sun, 5 Sep 2010 19:33:07 +0000 (-0700) Subject: Make portdbapi.aux_get() use a PollScheduler instance directly since X-Git-Tag: v2.2_rc76~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77acf23e64a53438218a5eb44a190f6d0e13c331;p=portage.git Make portdbapi.aux_get() use a PollScheduler instance directly since TaskScheduler isn't really needed. --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 793b738c7..0c96b4b4e 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -35,7 +35,7 @@ from portage import _encodings from portage import _unicode_encode from portage import OrderedDict from _emerge.EbuildMetadataPhase import EbuildMetadataPhase -from _emerge.TaskScheduler import TaskScheduler +from _emerge.PollScheduler import PollScheduler import os as _os import codecs @@ -578,15 +578,15 @@ class portdbapi(dbapi): mydata = self._metadata_callback( mycpv, myebuild, mylocation, {'EAPI':eapi}, emtime) else: - sched = TaskScheduler() proc = EbuildMetadataPhase(cpv=mycpv, ebuild_path=myebuild, ebuild_mtime=emtime, metadata_callback=self._metadata_callback, portdb=self, - repo_path=mylocation, scheduler=sched.sched_iface, + repo_path=mylocation, + scheduler=PollScheduler().sched_iface, settings=self.doebuild_settings) - sched.add(proc) - sched.run() + proc.start() + proc.wait() if proc.returncode != os.EX_OK: self._broken_ebuilds.add(myebuild)