]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Ensure tmpdir exists when running the check
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Jan 2013 22:49:08 +0000 (22:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2013 20:07:59 +0000 (20:07 +0000)
This avoids tracebacks from bitbake if the directory doesn't already
exist.

[YOCTO #3640]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index 0ffa52dedf3ff8a8742beb0469b63db2a581c313..48ac77d744b9dd4b75cbc467c0c1017ac02e7d5c 100644 (file)
@@ -570,6 +570,7 @@ def check_sanity(sanity_data):
         if (saved_tmpdir != tmpdir):
             messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
     else:
+        bb.utils.mkdirhier(tmpdir)
         f = file(checkfile, "w")
         f.write(tmpdir)
     f.close()