From 9ab41d17caa3a64113fee953b7e4bdb9937087af Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 14 Aug 2010 10:21:45 -0700 Subject: [PATCH] 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. --- pym/_emerge/AbstractEbuildProcess.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.26.2