diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-14 10:13:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-14 13:33:35 +0000 |
commit | 981ecb069a283cb7ac67a379d0bb8dd578672694 (patch) | |
tree | a8978f34ffc83668dda1f0a2e027f3ba89bd7fcd /bitbake | |
parent | b0d76cd193d8ab48d8997b8f33636c9979f8608e (diff) | |
download | poky-981ecb069a283cb7ac67a379d0bb8dd578672694.tar.gz |
bitbake: data_smart: Fix overrides file/line message additions
The overrides warning message is meant to show filename and line
numbers but the variable names are incorrect and this wasn't working.
Fix it.
(Bitbake rev: 18c8bf506355a432a767f09879ea32119c593513)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 551c1cb20fc9b9d0dab5d830182c2bf626e72845)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 5ffedebc27..e960327871 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -494,10 +494,10 @@ class DataSmart(MutableMapping): | |||
494 | 494 | ||
495 | if not var.startswith("__anon_") and ("_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 "file" in loginfo: |
498 | info += " file: %s" % loginfo[filename] | 498 | info += " file: %s" % loginfo["file"] |
499 | if "lineno" in loginfo: | 499 | if "line" in loginfo: |
500 | info += " line: %s" % loginfo[lineno] | 500 | info += " line: %s" % loginfo["line"] |
501 | bb.fatal("Variable %s contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake." % info) | 501 | bb.fatal("Variable %s contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake." % info) |
502 | 502 | ||
503 | self.expand_cache = {} | 503 | self.expand_cache = {} |