mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
bitbake: parse/ast: Show warnings for append/prepend/remove operators combined with +=/.=
Operations like XXX:append += "YYY" are almost always wrong and this is a common mistake made in the metadata. Show warnings for these usages with a view to making it a fatal error eventually. (Bitbake rev: 8c31e75557dc6a8d8f407b5d24d6327889a3e3b1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -130,6 +130,10 @@ class DataNode(AstNode):
|
|||||||
else:
|
else:
|
||||||
val = groupd["value"]
|
val = groupd["value"]
|
||||||
|
|
||||||
|
if ":append" in key or ":remove" in key or ":prepend" in key:
|
||||||
|
if op in ["append", "prepend", "postdot", "predot", "ques"]:
|
||||||
|
bb.warn(key + " " + groupd[op] + " is not a recommended operator combination, please replace it.")
|
||||||
|
|
||||||
flag = None
|
flag = None
|
||||||
if 'flag' in groupd and groupd['flag'] is not None:
|
if 'flag' in groupd and groupd['flag'] is not None:
|
||||||
flag = groupd['flag']
|
flag = groupd['flag']
|
||||||
|
|||||||
Reference in New Issue
Block a user