poky/bitbake/lib
Patrick Ohly 7d5822bf4c 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>
2017-07-21 22:36:09 +01:00
..
bb bitbake: codeparser.py: support deeply nested tokens 2017-07-21 22:36:09 +01:00
bblayers bitbake: bitbake: Initial multi-config support 2016-08-18 10:06:27 +01:00
bs4 bitbake: lib/bs4: Fix imports from html5lib >= 0.9999999/1.0b8 2017-03-26 13:19:51 +01:00
ply bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
progressbar bitbake: lib: implement basic task progress support 2016-07-08 09:57:26 +01:00
prserv bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
toaster bitbake: toaster: settings set ALLOWED_HOSTS to * in debug mode 2016-11-16 11:38:51 +00:00
codegen.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
pyinotify.py bitbake: bitbake/pyinotify.py: Upgrade to py3 version 2016-06-02 08:24:02 +01:00