From 42cab46428e69cf7423053b10940a275c38c04ff Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Aug 2010 11:18:40 -0700 Subject: Bug #324191 - Add support for FEATURES=compress-build-logs. The causes all build logs to be compressed while they are being written. Log file names have an extension that is appropriate for the compression type. Currently, only gzip(1) compression is supported, so build logs will have a '.gz' extension when this feature is enabled. --- pym/_emerge/EbuildBuild.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'pym/_emerge/EbuildBuild.py') diff --git a/pym/_emerge/EbuildBuild.py b/pym/_emerge/EbuildBuild.py index b8694df96..5c108fee4 100644 --- a/pym/_emerge/EbuildBuild.py +++ b/pym/_emerge/EbuildBuild.py @@ -218,19 +218,8 @@ class EbuildBuild(CompositeTask): if self._issyspkg: msg = ">>> This is a system package, " + \ "let's pack a rescue tarball.\n" - - log_path = self.settings.get("PORTAGE_LOG_FILE") - if log_path is not None: - log_file = codecs.open(_unicode_encode(log_path, - encoding=_encodings['fs'], errors='strict'), - mode='a', encoding=_encodings['content'], errors='replace') - try: - log_file.write(msg) - finally: - log_file.close() - - if not self.background: - portage.writemsg_stdout(msg, noiselevel=-1) + self.scheduler.output(msg, + log_path=self.settings.get("PORTAGE_LOG_FILE")) packager = EbuildBinpkg(background=self.background, pkg=self.pkg, scheduler=self.scheduler, settings=self.settings) -- cgit v1.2.3-1-g7c22