summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-21 22:49:08 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-08 11:03:16 (GMT)
commitdd3b62d6461c5fec32e6cb16a77b4d461ded5468 (patch)
tree5602403451f24a9aab652c7a5885ff6b1d5f4352
parent881f4b9bdd44bd4849155f54915eb5aed005869d (diff)
downloadpoky-dd3b62d6461c5fec32e6cb16a77b4d461ded5468.tar.gz
sanity.bbclass: Ensure tmpdir exists when running the check
This avoids tracebacks from bitbake if the directory doesn't already exist. [YOCTO #3640] (From OE-Core rev: 2d0f0d39dacc57c2c6eefade0b06aed4dc9814d5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index f2e9a74..bfba2f8 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -566,6 +566,7 @@ def check_sanity(sanity_data):
566 if (saved_tmpdir != tmpdir): 566 if (saved_tmpdir != tmpdir):
567 messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir 567 messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
568 else: 568 else:
569 bb.utils.mkdirhier(tmpdir)
569 f = file(checkfile, "w") 570 f = file(checkfile, "w")
570 f.write(tmpdir) 571 f.write(tmpdir)
571 f.close() 572 f.close()