projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25cb16c
)
In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 8 Oct 2008 18:25:39 +0000
(18:25 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 8 Oct 2008 18:25:39 +0000
(18:25 -0000)
svn path=/main/trunk/; revision=11658
pym/_emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/__init__.py
b/pym/_emerge/__init__.py
index ba28b9f5a8e51b0ad1f2df5b0eee41c534dc5077..24dc51bd5fbf27ebf749bb2116adfb300f129432 100644
(file)
--- 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