From: Zac Medico Date: Fri, 16 Jul 2010 07:22:17 +0000 (-0700) Subject: Make EbuildBuildDir.clean_log() do nothing when FEATURES=keepwork is X-Git-Tag: v2.2_rc68~493 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=375c6d94bd6b79b871856c02d0f331a9eff48d3b;p=portage.git Make EbuildBuildDir.clean_log() do nothing when FEATURES=keepwork is enabled. --- 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: