All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sanity.bbclass: Ensure tmpdir exists when running the check
@ 2013-01-21 22:49 Richard Purdie
  2013-01-22  0:04 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2013-01-21 22:49 UTC (permalink / raw)
  To: openembedded-core

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

[YOCTO #3640]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 0ffa52d..8ca0b68 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -571,6 +571,7 @@ def check_sanity(sanity_data):
             messages = messages + "Error, TMPDIR has changed location.
You need to either move it back to %s or rebuild\n" % saved_tmpdir
     else:
         f = file(checkfile, "w")
+        bb.utils.mkdirhier(tmpdir)
         f.write(tmpdir)
     f.close()
 





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-22  0:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-21 22:49 [PATCH] sanity.bbclass: Ensure tmpdir exists when running the check Richard Purdie
2013-01-22  0:04 ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.