sanity.bbclass: Ensure tmpdir exists when running the check
PATCH 1/1 sanity.bbclass: Ensure tmpdir exists when running the check
This avoids tracebacks from bitbake if the directory doesn't already exist.
[YOCTO #3640]
---
meta/classes/sanity.bbclass +0 -0
@@ -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()Quoted 13 lines · Richard Purdie
This avoids tracebacks from bitbake if the directory doesn't already exist.
[YOCTO #3640]
Signed-off-by Richard Purdie <[email protected]>---
meta/classes/sanity.bbclass +0
-0@@ -571,6 +571,7 @@ def check_sanity(sanity_data): messages = messages + "Error, TMPDIR has changed location.
Quoted 1 line
You need to either move it back to %s or rebuild\n" %
saved_tmpdir
^ looks like extra line break here, I had to apply it manually, testing now..
Quoted 13 lines
else:
f =file(checkfile, "w")
+bb.utils.mkdirhier(tmpdir)f.write(tmpdir) f.close()_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]