]> 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)
committerRoss Burton <ross.burton@intel.com>
Tue, 7 May 2013 10:54:25 +0000 (11:54 +0100)
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 f2e9a74441dbd8ce74e519b2b78074f6581ae0d2..bfba2f8d6bd211112170159aad21fe949d9ddeb4 100644 (file)
@@ -566,6 +566,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()