From: Sebastian Luther Date: Tue, 6 Apr 2010 16:58:06 +0000 (+0200) Subject: Cleanup $T earlier to prevent old messages from being displayed - bug 279041 X-Git-Tag: v2.2_rc68~667 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce921f3ccba0cf1f1568b4a8ecc39a8b90f75349;p=portage.git Cleanup $T earlier to prevent old messages from being displayed - bug 279041 --- diff --git a/pym/_emerge/EbuildExecuter.py b/pym/_emerge/EbuildExecuter.py index b9c87f082..adb91aa00 100644 --- a/pym/_emerge/EbuildExecuter.py +++ b/pym/_emerge/EbuildExecuter.py @@ -40,9 +40,8 @@ class EbuildExecuter(CompositeTask): pkg = self.pkg scheduler = self.scheduler settings = self.settings - cleanup = 1 + cleanup = 0 - # This initializes PORTAGE_LOG_FILE. portage.prepare_build_dirs(pkg.root, settings, cleanup) setup_phase = EbuildPhase(background=self.background, diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py index e5d8bf4a8..5059e998b 100644 --- a/pym/_emerge/EbuildFetcher.py +++ b/pym/_emerge/EbuildFetcher.py @@ -42,7 +42,9 @@ class EbuildFetcher(SpawnProcess): self._build_dir = EbuildBuildDir(pkg=self.pkg, settings=settings) self._build_dir.lock() self._build_dir.clean_log() - portage.prepare_build_dirs(self.pkg.root, self._build_dir.settings, 0) + cleanup=1 + # This initializes PORTAGE_LOG_FILE. + portage.prepare_build_dirs(self.pkg.root, self._build_dir.settings, cleanup) if self.logfile is None: self.logfile = settings.get("PORTAGE_LOG_FILE")