summaryrefslogtreecommitdiff
path: root/bitbake-dev/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard@ted.(none)>2009-09-22 20:14:34 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-24 18:57:09 +0100
commitd326382b5fdfc31a4f4a8e63f26fdd0d808a2270 (patch)
tree0b1f5c5449063f9474bd9109c4706a4a46c825ef /bitbake-dev/lib
parentbec200b38d96f2d766045daa36a6235151ea4e19 (diff)
downloadopenembedded-core-d326382b5fdfc31a4f4a8e63f26fdd0d808a2270.tar.gz
openembedded-core-d326382b5fdfc31a4f4a8e63f26fdd0d808a2270.tar.bz2
openembedded-core-d326382b5fdfc31a4f4a8e63f26fdd0d808a2270.tar.xz
openembedded-core-d326382b5fdfc31a4f4a8e63f26fdd0d808a2270.zip
bitbake/build.py: Remove zero sized log files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib')
-rw-r--r--bitbake-dev/lib/bb/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/build.py b/bitbake-dev/lib/bb/build.py
index 9bb5abd78..05b7d94d1 100644
--- a/bitbake-dev/lib/bb/build.py
+++ b/bitbake-dev/lib/bb/build.py
@@ -184,6 +184,10 @@ def exec_func(func, d, dirs = None):
so.close()
se.close()
+ if os.path.getsize(logfile) == 0:
+ bb.msg.debug(2, bb.msg.domain.Build, "Zero size logfile %s, removing" % logfile)
+ os.remove(logfile)
+
# Close the backup fds
os.close(osi[0])
os.close(oso[0])