[OE-core] [PATCH] sanity.bbclass: Ensure tmpdir exists when running the check

Martin Jansa martin.jansa at gmail.com
Tue Jan 22 00:04:42 UTC 2013


On Mon, Jan 21, 2013 at 10:49:08PM +0000, Richard Purdie wrote:
> This avoids tracebacks from bitbake if the directory doesn't already
> exist.
> 
> [YOCTO #3640]
> 
> Signed-off-by: Richard Purdie <richard.purdie at 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

^ looks like extra line break here, I had to apply it manually, testing now..

>      else:
>          f = file(checkfile, "w")
> +        bb.utils.mkdirhier(tmpdir)
>          f.write(tmpdir)
>      f.close()
>  
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130122/7070057b/attachment-0002.sig>


More information about the Openembedded-core mailing list