]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
build.py: Make sure the logfile exists before checking its size. Previously this...
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 23 Oct 2009 09:25:30 +0000 (10:25 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 23 Oct 2009 09:25:30 +0000 (10:25 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
lib/bb/build.py

index 05b7d94d130d7d5e50c6731e899c47e6a14af8ac..d324b2953a3dfeb893477762f20155932c118401 100644 (file)
@@ -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)