From: Zac Medico Date: Thu, 18 Oct 2012 01:24:34 +0000 (-0700) Subject: ManifestTask: use PopenProcess more X-Git-Tag: v2.2.0_alpha141~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4bd612e8521983f5b8ad939ba3ccf27fccb0d874;p=portage.git ManifestTask: use PopenProcess more --- diff --git a/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py b/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py index d51400ade..e155bc94b 100644 --- a/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py +++ b/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py @@ -13,7 +13,6 @@ from portage.util import (atomic_ofstream, grablines, from portage.util._async.PopenProcess import PopenProcess from _emerge.CompositeTask import CompositeTask from _emerge.PipeReader import PipeReader -from _emerge.SpawnProcess import SpawnProcess from .ManifestProcess import ManifestProcess class ManifestTask(CompositeTask): @@ -130,8 +129,7 @@ class ManifestTask(CompositeTask): gpg_vars["FILE"] = self._manifest_path gpg_cmd = varexpand(self.gpg_cmd, mydict=gpg_vars) gpg_cmd = shlex_split(gpg_cmd) - gpg_proc = SpawnProcess( - args=gpg_cmd, env=os.environ, scheduler=self.scheduler) + gpg_proc = PopenProcess(proc=subprocess.Popen(gpg_cmd)) self._start_task(gpg_proc, self._gpg_proc_exit) def _gpg_proc_exit(self, gpg_proc):