From: Zac Medico Date: Wed, 8 Oct 2008 18:25:39 +0000 (-0000) Subject: In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful. X-Git-Tag: v2.2_rc12~7 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2b9fc8209f26f4de740d72207cc15accf6766f63;p=portage.git In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful. svn path=/main/trunk/; revision=11658 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index ba28b9f5a..24dc51bd5 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2469,6 +2469,13 @@ class EbuildBuild(CompositeTask): os.path.exists(fetcher.logfile): self.settings["PORTAGE_LOG_FILE"] = fetcher.logfile + if not fetch_failed and fetcher.logfile is not None: + # Fetch was successful, so remove the fetch log. + try: + os.unlink(fetcher.logfile) + except OSError: + pass + if fetch_failed or opts.fetchonly: self.wait() return