diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-21 22:49:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-24 20:09:00 +0000 |
commit | 932a4cdf4ba4368a2f9e066ed086d08a449f92ec (patch) | |
tree | 462d8b0f357d36aefee94a3d58750ac080273d2b /meta/classes/sanity.bbclass | |
parent | f19bdeab37e8433c42a36383c78b0f10e700342d (diff) | |
download | poky-932a4cdf4ba4368a2f9e066ed086d08a449f92ec.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: 1a60e96b21d328fe936e594f3061459e8f2f1b5e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | 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 0ffa52dedf..48ac77d744 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -570,6 +570,7 @@ def check_sanity(sanity_data): | |||
570 | if (saved_tmpdir != tmpdir): | 570 | if (saved_tmpdir != tmpdir): |
571 | messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir | 571 | messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir |
572 | else: | 572 | else: |
573 | bb.utils.mkdirhier(tmpdir) | ||
573 | f = file(checkfile, "w") | 574 | f = file(checkfile, "w") |
574 | f.write(tmpdir) | 575 | f.write(tmpdir) |
575 | f.close() | 576 | f.close() |