From 375c6d94bd6b79b871856c02d0f331a9eff48d3b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 16 Jul 2010 00:22:17 -0700 Subject: [PATCH] Make EbuildBuildDir.clean_log() do nothing when FEATURES=keepwork is enabled. --- pym/_emerge/EbuildBuildDir.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/EbuildBuildDir.py b/pym/_emerge/EbuildBuildDir.py index dc7e1daa5..d9e471639 100644 --- a/pym/_emerge/EbuildBuildDir.py +++ b/pym/_emerge/EbuildBuildDir.py @@ -60,8 +60,12 @@ class EbuildBuildDir(SlotObject): portage.locks.unlockdir(catdir_lock) def clean_log(self): - """Discard existing log.""" + """Discard existing log. The log will not be be discarded + in cases when it would not make sense, like when FEATURES=keepwork + is enabled.""" settings = self.settings + if 'keepwork' in settings.features: + return log_file = settings.get('PORTAGE_LOG_FILE') if log_file is not None and os.path.isfile(log_file): try: -- 2.26.2