Skip to contentSkip to conversation

sanity.bbclass: Ensure tmpdir exists when running the check

PATCH In review Richard Purdie 2 participants 2 messages Jan 21, 2013 – Jan 22, 2013

lore
Share & tools
lore
#0 lore raw

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
index 0ffa52d..8ca0b68 100644
@@ -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()
#1 lore raw
Quoted 13 lines · Richard Purdie

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

[YOCTO #3640]

---

meta/classes/sanity.bbclass +0 -0
index 0ffa52d..8ca0b68 100644
@@ -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]