From: Zac Medico Date: Sat, 14 Aug 2010 17:21:45 +0000 (-0700) Subject: When in background mode, set NOCOLOR=true in order to prevent color X-Git-Tag: v2.2_rc68~214 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ab41d17caa3a64113fee953b7e4bdb9937087af;p=portage.git When in background mode, set NOCOLOR=true in order to prevent color codes from showing up in logs, since we're not displaying to a terminal anyway. Thanks to Brian Harring for the suggestion. --- diff --git a/pym/_emerge/AbstractEbuildProcess.py b/pym/_emerge/AbstractEbuildProcess.py index 0dec65036..de120e8ad 100644 --- a/pym/_emerge/AbstractEbuildProcess.py +++ b/pym/_emerge/AbstractEbuildProcess.py @@ -33,6 +33,11 @@ class AbstractEbuildProcess(SpawnProcess): def _start(self): + if self.background: + # Automatically prevent color codes from showing up in logs, + # since we're not displaying to a terminal anyway. + self.settings['NOCOLOR'] = 'true' + if self.phase not in self._phases_without_builddir: self.settings['PORTAGE_IPC_DAEMON'] = "1" self._exit_command = ExitCommand()