summaryrefslogtreecommitdiffstats
path: root/lib/bb/utils.py
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-11-18 16:23:22 +0100
committerArmin Kuster <akuster808@gmail.com>2017-04-28 06:38:37 -0700
commit9feeff5805c70e345972188d6f290a2c9c32e0bb (patch)
treeb238616567a374fe62554e9b4be56ede0102773f /lib/bb/utils.py
parentbdf7a362ecdafd47f309b7a21feac4b94624f287 (diff)
downloadbitbake-contrib-akuster/1.32-next.tar.gz
codeparser.py: support deeply nested tokensakuster/1.32-next
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] Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'lib/bb/utils.py')
0 files changed, 0 insertions, 0 deletions