diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2021-11-25 00:39:12 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-26 17:01:37 +0000 |
commit | 11ecd7628c49ec7b7cc44be48c86e4aee0a0d345 (patch) | |
tree | 111bb0679fdc8d4a7571d70d4ec0770fb0189646 /bitbake/lib/bb/data_smart.py | |
parent | 1c032b4d1dd6afef3d8bd8899e7f4bd661963ca1 (diff) | |
download | poky-11ecd7628c49ec7b7cc44be48c86e4aee0a0d345.tar.gz |
bitbake: data_smart.py: Skip old override syntax checking for anonymous functions
Fixed when oe-core's path contians append/prepend/remove, e.g.:
/path/to/append_test/oe-core/
Initial a build in any build dirs:
$ bitbake -p
ERROR: Variable __anon_32__buildarea2_xhou_builds_append_test_layers_oe_core_meta_classes_patch_bbclass
contains an operation using the old override syntax. Please convert this
layer/metadata before attempting to use with a newer bitbake.
The anonymous fuctions has no names, so skip checking for it to fix the issue.
(Bitbake rev: ebd00330c41c75797529ff38d6a0955b93f05d1b)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 7ed7112bdc..543372d153 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -492,7 +492,7 @@ class DataSmart(MutableMapping): | |||
492 | def setVar(self, var, value, **loginfo): | 492 | def setVar(self, var, value, **loginfo): |
493 | #print("var=" + str(var) + " val=" + str(value)) | 493 | #print("var=" + str(var) + " val=" + str(value)) |
494 | 494 | ||
495 | if "_append" in var or "_prepend" in var or "_remove" in var: | 495 | if not var.startswith("__anon_") and ("_append" in var or "_prepend" in var or "_remove" in var): |
496 | info = "%s" % var | 496 | info = "%s" % var |
497 | if "filename" in loginfo: | 497 | if "filename" in loginfo: |
498 | info += " file: %s" % loginfo[filename] | 498 | info += " file: %s" % loginfo[filename] |