diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 7644bf0ee7..e56f4bcf16 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -225,6 +225,10 @@ def exec_func_shell(func, d, flags): | |||
225 | so.close() | 225 | so.close() |
226 | se.close() | 226 | se.close() |
227 | 227 | ||
228 | if os.path.getsize(logfile) == 0: | ||
229 | bb.msg.debug(2, bb.msg.domain.Build, "Zero size logfile %s, removing" % logfile) | ||
230 | os.remove(logfile) | ||
231 | |||
228 | # close the backup fds | 232 | # close the backup fds |
229 | os.close(osi[0]) | 233 | os.close(osi[0]) |
230 | os.close(oso[0]) | 234 | os.close(oso[0]) |