summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/MiscFunctionsProcess.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-06 08:03:46 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-06 08:03:46 +0000
commit0aad441b68c56e2fe443133ae7e91dad749abc19 (patch)
tree7dbbedee1816be4289fa4fff7310772515743e43 /pym/_emerge/MiscFunctionsProcess.py
parent512e554dbf5e79fd391fc251568841e5528543ff (diff)
downloadportage-0aad441b68c56e2fe443133ae7e91dad749abc19.tar.gz
portage-0aad441b68c56e2fe443133ae7e91dad749abc19.tar.bz2
portage-0aad441b68c56e2fe443133ae7e91dad749abc19.zip
Add a AbstractEbuildProcess class for MiscFunctionsProcess to inherit the
_pipe and _can_log methods that used to be in the EbuildProcess class. svn path=/main/trunk/; revision=14933
Diffstat (limited to 'pym/_emerge/MiscFunctionsProcess.py')
-rw-r--r--pym/_emerge/MiscFunctionsProcess.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pym/_emerge/MiscFunctionsProcess.py b/pym/_emerge/MiscFunctionsProcess.py
index 3e2fff7cc..63d7873ea 100644
--- a/pym/_emerge/MiscFunctionsProcess.py
+++ b/pym/_emerge/MiscFunctionsProcess.py
@@ -2,16 +2,16 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-from _emerge.SpawnProcess import SpawnProcess
+from _emerge.AbstractEbuildProcess import AbstractEbuildProcess
import portage
from portage import os
-class MiscFunctionsProcess(SpawnProcess):
+class MiscFunctionsProcess(AbstractEbuildProcess):
"""
Spawns misc-functions.sh with an existing ebuild environment.
"""
- __slots__ = ("commands", "phase", "pkg", "settings")
+ __slots__ = ('commands',)
def _start(self):
settings = self.settings
@@ -26,7 +26,7 @@ class MiscFunctionsProcess(SpawnProcess):
portage._doebuild_exit_status_unlink(
settings.get("EBUILD_EXIT_STATUS_FILE"))
- SpawnProcess._start(self)
+ AbstractEbuildProcess._start(self)
def _spawn(self, args, **kwargs):
settings = self.settings
@@ -35,7 +35,7 @@ class MiscFunctionsProcess(SpawnProcess):
debug=debug, **kwargs)
def _set_returncode(self, wait_retval):
- SpawnProcess._set_returncode(self, wait_retval)
+ AbstractEbuildProcess._set_returncode(self, wait_retval)
self.returncode = portage._doebuild_exit_status_check_and_log(
self.settings, self.phase, self.returncode)