From 2b9fc8209f26f4de740d72207cc15accf6766f63 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 8 Oct 2008 18:25:39 +0000 Subject: [PATCH] In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful. svn path=/main/trunk/; revision=11658 --- pym/_emerge/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.26.2