From: Zac Medico Date: Tue, 10 Aug 2010 06:38:38 +0000 (-0700) Subject: Relocate attributes from AbstractEbuildProcess to subclasses that use X-Git-Tag: v2.2_rc68~349 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77c2db9850be29d1cd94c58cbc2e2b05e03bc9d2;p=portage.git Relocate attributes from AbstractEbuildProcess to subclasses that use them, since EbuildSpawnProcess doesn't use the attributes. --- diff --git a/pym/_emerge/AbstractEbuildProcess.py b/pym/_emerge/AbstractEbuildProcess.py index 293251323..302d34403 100644 --- a/pym/_emerge/AbstractEbuildProcess.py +++ b/pym/_emerge/AbstractEbuildProcess.py @@ -8,7 +8,7 @@ from portage.util._pty import _create_pty_or_pipe class AbstractEbuildProcess(SpawnProcess): - __slots__ = ('phase', 'pkg', 'settings',) + __slots__ = ('settings',) def _pipe(self, fd_pipes): stdout_pipe = fd_pipes.get(1) diff --git a/pym/_emerge/EbuildProcess.py b/pym/_emerge/EbuildProcess.py index bf7af4b9d..a0ef2357a 100644 --- a/pym/_emerge/EbuildProcess.py +++ b/pym/_emerge/EbuildProcess.py @@ -8,7 +8,7 @@ from portage.package.ebuild.doebuild import doebuild, \ class EbuildProcess(AbstractEbuildProcess): - __slots__ = ('tree',) + __slots__ = ('phase', 'pkg', 'tree',) def _start(self): # Don't open the log file during the clean phase since the diff --git a/pym/_emerge/MiscFunctionsProcess.py b/pym/_emerge/MiscFunctionsProcess.py index c0d40a197..c66beb2c2 100644 --- a/pym/_emerge/MiscFunctionsProcess.py +++ b/pym/_emerge/MiscFunctionsProcess.py @@ -12,7 +12,7 @@ class MiscFunctionsProcess(AbstractEbuildProcess): Spawns misc-functions.sh with an existing ebuild environment. """ - __slots__ = ('commands',) + __slots__ = ('commands', 'phase', 'pkg',) def _start(self): settings = self.settings