ManifestTask: use PopenProcess more
authorZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 01:24:34 +0000 (18:24 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 01:24:34 +0000 (18:24 -0700)
pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py

index d51400adebc7bd5af59be1c076eee3225ebf5b3e..e155bc94b24d9b49c3fe243c4460b28d6f879401 100644 (file)
@@ -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):