projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d213f11
)
Unlink log instead of truncate, to avoid leaving empty log in
author
Zac Medico
<zmedico@gentoo.org>
Tue, 2 Mar 2010 22:27:16 +0000
(22:27 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 2 Mar 2010 22:27:16 +0000
(22:27 -0000)
$PORT_LOGDIR. This reverts bug 304981 (reporting doesn't use tee like
this anymore so he'd prefer the old behavior).
svn path=/main/trunk/; revision=15722
pym/_emerge/EbuildBuildDir.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/EbuildBuildDir.py
b/pym/_emerge/EbuildBuildDir.py
index 99c48dfb6dadd26434ba182d81c6171b590f5e39..4ca0c4b1f75e2316de8f0e44cbdbe2ba0634524b 100644
(file)
--- a/
pym/_emerge/EbuildBuildDir.py
+++ b/
pym/_emerge/EbuildBuildDir.py
@@
-65,9
+65,8
@@
class EbuildBuildDir(SlotObject):
settings = self.settings
log_file = settings.get('PORTAGE_LOG_FILE')
if log_file is not None and os.path.isfile(log_file):
- # Truncate rather than unlink, so tail -f still works.
try:
- o
pen(log_file, 'wb'
)
+ o
s.unlink(log_file
)
except OSError:
pass