]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake-dev: Fix a couple of bugs that crept in breaking runtime
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 22 Oct 2009 16:32:12 +0000 (17:32 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 22 Oct 2009 16:32:12 +0000 (17:32 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake-dev/lib/bb/build.py
bitbake-dev/lib/bb/parse/parse_py/BBHandler.py

index b37bcf63bc42e13e82abfb81c709d0a58491873e..65e8118b4fccf90eaff2368e9cc7ac4f2cffad7d 100644 (file)
@@ -191,7 +191,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)
 
index 76b917ca5d108f029b71b32c653057f143243ebe..f0c34095684a79c2968fbb206a17ca4b81efc31b 100644 (file)
@@ -94,7 +94,7 @@ def finalise(fn, d):
         for f in anonfuncs:
             code = code + "    %s(d)\n" % f
         data.setVar("__anonfunc", code, d)        
-        build.exec_func_python("__anonfunc", d)
+        build.exec_func("__anonfunc", d)
         data.delVar('T', d)
         if t:
             data.setVar('T', t, d)