[oe-commits] Holger Hans Peter Freyther : sanity.bbclass: Work if no TMPDIR was created yet

GIT User account git at amethyst.openembedded.net
Mon Oct 27 13:48:34 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: c3d62194db40e759f2bfa22e22aea1ae0ee0583f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c3d62194db40e759f2bfa22e22aea1ae0ee0583f

Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date:   Sun Oct 26 20:16:50 2008 +0100

sanity.bbclass: Work if no TMPDIR was created yet

---

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

diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 7aabe04..b925d05 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -131,6 +131,8 @@ def check_sanity(e):
 		if (f.read().strip() != tmpdir):
 			messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % tmpdir
 	else:
+		import bb
+		bb.mkdirhier(tmpdir)
 		f = file(checkfile, "w")
 		f.write(tmpdir)
 	f.close()





More information about the Openembedded-commits mailing list