diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-22 17:32:12 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-22 17:32:12 +0100 |
| commit | eb0d2f2615dbd15f8931d677b005ecc8f808126d (patch) | |
| tree | 6458f30ca93adb79c8df2f17e9383ac4257ea005 /bitbake-dev/lib/bb/build.py | |
| parent | a1a308c54671f20bf9eaf87f74fc6e5ec01842c9 (diff) | |
| download | poky-eb0d2f2615dbd15f8931d677b005ecc8f808126d.tar.gz | |
bitbake-dev: Fix a couple of bugs that crept in breaking runtime
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/build.py')
| -rw-r--r-- | bitbake-dev/lib/bb/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake-dev/lib/bb/build.py b/bitbake-dev/lib/bb/build.py index b37bcf63bc..65e8118b4f 100644 --- a/bitbake-dev/lib/bb/build.py +++ b/bitbake-dev/lib/bb/build.py | |||
| @@ -191,7 +191,7 @@ def exec_func(func, d, dirs = None): | |||
| 191 | so.close() | 191 | so.close() |
| 192 | se.close() | 192 | se.close() |
| 193 | 193 | ||
| 194 | if os.path.getsize(logfile) == 0: | 194 | if os.path.exists(logfile) and os.path.getsize(logfile) == 0: |
| 195 | bb.msg.debug(2, bb.msg.domain.Build, "Zero size logfile %s, removing" % logfile) | 195 | bb.msg.debug(2, bb.msg.domain.Build, "Zero size logfile %s, removing" % logfile) |
| 196 | os.remove(logfile) | 196 | os.remove(logfile) |
| 197 | 197 | ||
