summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-05 12:33:07 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-05 12:33:07 -0700
commit77acf23e64a53438218a5eb44a190f6d0e13c331 (patch)
tree9958cda2cd22659bbe2667b6e74963392046008a
parent576d32d2c859e8f3012bbab6e666b870ba88c5a1 (diff)
downloadportage-77acf23e64a53438218a5eb44a190f6d0e13c331.tar.gz
portage-77acf23e64a53438218a5eb44a190f6d0e13c331.tar.bz2
portage-77acf23e64a53438218a5eb44a190f6d0e13c331.zip
Make portdbapi.aux_get() use a PollScheduler instance directly since
TaskScheduler isn't really needed.
-rw-r--r--pym/portage/dbapi/porttree.py10
1 files changed, 5 insertions, 5 deletions
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)