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

* Re: [PATCH] sanity.bbclass: Ensure tmpdir exists when running the check
  2013-01-21 22:49 [PATCH] sanity.bbclass: Ensure tmpdir exists when running the check Richard Purdie
@ 2013-01-22  0:04 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2013-01-22  0:04 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

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@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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[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.