diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-11-18 16:23:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 22:36:09 +0100 |
commit | 7d5822bf4cb2089687c3c9a908cf4a4ef4e9a53a (patch) | |
tree | 9da07e0a22c6d7d1258d6c74120cd722f21b48c4 /bitbake/lib/bb/fetch2/wget.py | |
parent | 2e132efa2f985f72c3b6c5402747d0b0e1fc540a (diff) | |
download | poky-7d5822bf4cb2089687c3c9a908cf4a4ef4e9a53a.tar.gz |
bitbake: codeparser.py: support deeply nested tokens
For shell constructs like
echo hello & wait $!
the process_tokens() method ended up with a situation where "token"
in the "name, value = token" assignment was a list of tuples
and not the expected tuple, causing the assignment to fail.
There were already two for loops (one in _parse_shell(), one in
process_tokens()) which iterated over token lists. Apparently the
actual nesting can also be deeper.
Now there is just one such loop in process_token_list() which calls
itself recursively when it detects that a list entry is another list.
As a side effect (improvement?!) of the loop removal in
_parse_shell(), the local function definitions in process_tokens() get
executed less often.
Fixes: [YOCTO #10668]
(Bitbake rev: 887ea6d25cee5114365dfbf1130603599e13ee80)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
0 files changed, 0 insertions, 0 deletions