[OE-core] [PATCH] sstate: fix typo resulting in crazy directory creation

Christopher Larson clarson at kergoth.com
Fri Sep 25 16:29:35 UTC 2015


On Fri, Sep 25, 2015 at 9:20 AM, Ross Burton <ross.burton at intel.com> wrote:

> A transposed , and ) meant that a string was passed to a function instead
> of a
> list of strings, so bitbake ends up creating a directory for every
> character in
> the current working directory.
>
> Signed-off-by: Ross Burton <ross.burton at intel.com>
> ---
>  meta/classes/sstate.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index b257734..d09e27a 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -644,7 +644,7 @@ python sstate_task_postfunc () {
>
>      sstate_install(shared_state, d)
>      for intercept in shared_state['interceptfuncs']:
> -        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True,)))
> +        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),))
>      omask = os.umask(002)
>      if omask != 002:
>         bb.note("Using umask 002 (not %0o) for sstate packaging" % omask)
>

I think I'd have just passed a list instead of a tuple here :) Easier to
parse visually.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150925/1e86f6d4/attachment-0002.html>


More information about the Openembedded-core mailing list