diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-03 23:28:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-04 11:35:42 +0000 |
commit | 4e884c8723cf2e3e89d6ac412fb472e64e51bac1 (patch) | |
tree | 91b89f1274d83ef36add2751b06797ee926bcc6a /bitbake/lib/bb | |
parent | c2381e3a69ecff28d19beb18f4a0037a6ba40352 (diff) | |
download | poky-4e884c8723cf2e3e89d6ac412fb472e64e51bac1.tar.gz |
bitbake: cooker: Fix environment double key expansion issue
The base configuration needs key expansion and anon python execution,
the parsed configurations do not. Fix this consistently, its been
broken and causing double key expansion for a while, only relised
when we started double anonymous python exeution too.
(Bitbake rev: 6138897de5ac6becf3bff56ce7a78f3ec208fcdf)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index d1df711d40..1fda40dd41 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -516,6 +516,8 @@ class BBCooker: | |||
516 | fn = runlist[0][3] | 516 | fn = runlist[0][3] |
517 | else: | 517 | else: |
518 | envdata = self.data | 518 | envdata = self.data |
519 | data.expandKeys(envdata) | ||
520 | parse.ast.runAnonFuncs(envdata) | ||
519 | 521 | ||
520 | if fn: | 522 | if fn: |
521 | try: | 523 | try: |
@@ -530,9 +532,6 @@ class BBCooker: | |||
530 | self.data.inchistory.emit(env) | 532 | self.data.inchistory.emit(env) |
531 | logger.plain(env.getvalue()) | 533 | logger.plain(env.getvalue()) |
532 | 534 | ||
533 | data.expandKeys(envdata) | ||
534 | parse.ast.runAnonFuncs(envdata) | ||
535 | |||
536 | # emit variables and shell functions | 535 | # emit variables and shell functions |
537 | with closing(StringIO()) as env: | 536 | with closing(StringIO()) as env: |
538 | data.emit_env(env, envdata, True) | 537 | data.emit_env(env, envdata, True) |