aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-10-23 10:25:30 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-10-23 10:25:30 +0100
commit8462cc8e1da94ff744ed82c33462fdb997c998cc (patch)
tree3ca420c29cdeef776324b2177c2ffe1e72e1b3c2 /lib/bb/build.py
parent05faed88484f805b75839c11bfc433c4cc6d4507 (diff)
downloadbitbake-8462cc8e1da94ff744ed82c33462fdb997c998cc.tar.gz
build.py: Make sure the logfile exists before checking its size. Previously this broke upon recursive calls.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 05b7d94d1..d324b2953 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -184,7 +184,7 @@ def exec_func(func, d, dirs = None):
so.close()
se.close()
- if os.path.getsize(logfile) == 0:
+ if os.path.exists(logfile) and os.path.getsize(logfile) == 0:
bb.msg.debug(2, bb.msg.domain.Build, "Zero size logfile %s, removing" % logfile)
os.remove(logfile)