sstate: fix typo resulting in crazy directory creation
PATCH 1/1 sstate: fix typo resulting in crazy directory creation
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.
--- meta/classes/sstate.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/sstate.bbclass +1 -1
@@ -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)
Signature · 1 line
2.1.4
Quoted 17 lines · Ross Burton
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 <[email protected]>--- meta/classes/sstate.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/sstate.bbclass +0
-0
meta/classes/sstate.bbclass python sstate_task_postfunc () { · line 650
Quoted 8 lines
meta/classes/sstate.bbclass +1
-1@@ -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.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 3 lines · Christopher Larson
I think I'd have just passed a list instead of a tuple here :) Easier to parse visually.
Yeah, agreed in hindsight. Also insert a groan about untyped languages.
Ross