poky/bitbake/lib/bb
Antonin Godard 03742d7cb3 bitbake: codeparser: support shell substitutions in quotes
The current shell substitution mechanism only works without quotes. For
example:

  var1=$(cmd1 ...)

Will work and add `cmd1` to the correspondind `run.do_*` file.

However, although quite common, this syntax is not supported:

  var1="$(cmd1 ...)"

This commit adds this feature by adding a step to process_words() to
check whether we are dealing with quotes first, and by iterating on
what's between them to detect new shell substitution candidates. These
candidates are tested and parsed like before in the next step. The
original `part` being part of the candidates means the syntax
var1=$(cmd1 ...) is still valid.

(Bitbake rev: f56e1a37b2ba1773ed308043d7eb073cc2e6c06e)

Signed-off-by: Antonin Godard <antoningodard@pm.me>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-05-21 14:14:41 +01:00
..
asyncrpc bitbake: asyncrpc/client: Fix websockets minimum version for python 3.10 2024-05-16 10:52:43 +01:00
compress bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
fetch2 bitbake: fetch2/svn: Fix mirroring issue with svn 2024-05-08 14:51:43 +01:00
parse bitbake: parse: Improve/fix cache invalidation via mtime 2024-05-16 23:25:55 +01:00
pysh bitbake: pyshyacc: allow double COMMA statements 2020-07-12 11:53:00 +01:00
server bitbake: process/server: Fix typo 2024-02-10 15:25:22 +00:00
tests bitbake: fetch2/svn: Fix mirroring issue with svn 2024-05-08 14:51:43 +01:00
ui bitbake: lib/bb: support NO_COLOR 2024-03-22 16:26:45 +00:00
__init__.py bitbake: bitbake: update to version 2.9.1 2024-05-08 14:53:01 +01:00
acl.py bitbake: lib/bb: Add xattr and acl libraries 2023-08-24 16:49:38 +01:00
build.py bitbake: build: Handle conflict between cwd and cleandirs 2024-05-08 14:51:43 +01:00
cache_extra.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
cache.py bitbake: cache: Simplify virtualfn2realfn() 2023-11-23 12:06:06 +00:00
checksum.py bitbake: checksum: Allow spaces in URI filenames 2022-04-14 09:48:33 +01:00
codeparser.py bitbake: codeparser: support shell substitutions in quotes 2024-05-21 14:14:41 +01:00
command.py bitbake: siggen: Ensure version of siggen is verified 2024-01-05 11:59:08 +00:00
cooker.py bitbake: cooker: Ensure generateTaskDepTreeData fails for NoProvider 2024-05-17 11:56:40 +01:00
cookerdata.py bitbake: cookerdata: Be consistent with what type bb_data represents 2023-11-23 12:06:06 +00:00
COW.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
daemonize.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
data_smart.py bitbake: data_smart: directly check for methodpool functions in context lookup 2023-08-04 11:37:56 +01:00
data.py bitbake: data: Add missing dependency handling of remove operator 2023-09-20 08:57:41 +01:00
event.py bitbake: bitbake: event: Inject empty lines to make code match lineno in filename 2024-01-10 13:55:33 +00:00
exceptions.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
main.py bitbake: bitbake: improve descriptions of '-S printdiff' 2024-03-22 16:26:45 +00:00
methodpool.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
monitordisk.py bitbake: Fix disk space monitoring on cephfs 2023-08-25 07:55:34 +01:00
msg.py bitbake: lib/bb: support NO_COLOR 2024-03-22 16:26:45 +00:00
namedtuple_with_abc.py bitbake: lib: fix most undefined code picked up by pylint 2020-08-25 18:14:53 +01:00
persist_data.py bitbake: persist_data: Handle sqlite error when cachefile path is too long 2023-01-13 17:34:08 +00:00
process.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
progress.py bitbake: progress: Fix typo "wherever" 2022-02-20 16:45:25 +00:00
providers.py bitbake: providers: use local variable for packages_dynamic pattern 2022-04-19 14:15:09 +01:00
remotedata.py bitbake: tinfoil: Simplify remote datastore connections 2020-03-24 22:01:03 +00:00
runqueue.py bitbake: siggen/runqueue: Report which dependencies affect the taskhash 2024-05-08 14:51:43 +01:00
siggen.py bitbake: siggen/runqueue: Report which dependencies affect the taskhash 2024-05-08 14:51:43 +01:00
taskdata.py bitbake: lib/bb: Replace "abort" usage in task handling 2022-02-21 23:37:26 +00:00
tinfoil.py bitbake: tinfoil: Do not fail when logging is disabled and full config is used 2023-09-26 10:37:17 +01:00
utils.py bitbake: utils: better estimate number of available cpus 2024-03-22 16:26:45 +00:00
xattr.py bitbake: lib/bb: Add xattr and acl libraries 2023-08-24 16:49:38 +01:00