diff options
Diffstat (limited to 'bitbake-dev/lib')
-rw-r--r-- | bitbake-dev/lib/bb/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/build.py b/bitbake-dev/lib/bb/build.py index 9bb5abd78d..05b7d94d13 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]) |