Fix some typos.
[portage.git] / pym / _emerge / EbuildProcess.py
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 from _emerge.AbstractEbuildProcess import AbstractEbuildProcess
5 import portage
6 portage.proxy.lazyimport.lazyimport(globals(),
7         'portage.package.ebuild.doebuild:_doebuild_spawn,_spawn_actionmap'
8 )
9
10 class EbuildProcess(AbstractEbuildProcess):
11
12         __slots__ = ('actionmap',)
13
14         def _spawn(self, args, **kwargs):
15
16                 actionmap = self.actionmap
17                 if actionmap is None:
18                         actionmap = _spawn_actionmap(self.settings)
19
20                 if self._dummy_pipe_fd is not None:
21                         self.settings["PORTAGE_PIPE_FD"] = str(self._dummy_pipe_fd)
22
23                 try:
24                         return _doebuild_spawn(self.phase, self.settings,
25                                         actionmap=actionmap, **kwargs)
26                 finally:
27                         self.settings.pop("PORTAGE_PIPE_FD", None)