Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11658 - main/trunk/pym/_emerge
Date: Wed, 08 Oct 2008 18:25:46
Message-Id: E1KndjA-0005rX-Mg@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-10-08 18:25:39 +0000 (Wed, 08 Oct 2008)
3 New Revision: 11658
4
5 Modified:
6 main/trunk/pym/_emerge/__init__.py
7 Log:
8 In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.
9
10
11 Modified: main/trunk/pym/_emerge/__init__.py
12 ===================================================================
13 --- main/trunk/pym/_emerge/__init__.py 2008-10-08 18:03:07 UTC (rev 11657)
14 +++ main/trunk/pym/_emerge/__init__.py 2008-10-08 18:25:39 UTC (rev 11658)
15 @@ -2469,6 +2469,13 @@
16 os.path.exists(fetcher.logfile):
17 self.settings["PORTAGE_LOG_FILE"] = fetcher.logfile
18
19 + if not fetch_failed and fetcher.logfile is not None:
20 + # Fetch was successful, so remove the fetch log.
21 + try:
22 + os.unlink(fetcher.logfile)
23 + except OSError:
24 + pass
25 +
26 if fetch_failed or opts.fetchonly:
27 self.wait()
28 return