[oe-commits] Richard Purdie : sanity.bbclass: Ensure tmpdir exists when running the check

git at git.openembedded.org git at git.openembedded.org
Thu Jan 24 20:13:47 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 1a60e96b21d328fe936e594f3061459e8f2f1b5e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1a60e96b21d328fe936e594f3061459e8f2f1b5e

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Jan 21 22:49:08 2013 +0000

sanity.bbclass: Ensure tmpdir exists when running the check

This avoids tracebacks from bitbake if the directory doesn't already
exist.

[YOCTO #3640]

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/sanity.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 0ffa52d..48ac77d 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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()





More information about the Openembedded-commits mailing list