mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
getVar/setVar cleanups
Complete the bb.data.getVar/setVar replacements with accesses directly to the data store object. (From OE-Core rev: 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -121,7 +121,7 @@ python native_virtclass_handler () {
|
||||
newdeps.append(dep + "-native")
|
||||
else:
|
||||
newdeps.append(dep)
|
||||
bb.data.setVar(varname, " ".join(newdeps), d)
|
||||
d.setVar(varname, " ".join(newdeps))
|
||||
|
||||
map_dependencies("DEPENDS", e.data)
|
||||
for pkg in (e.data.getVar("PACKAGES", True).split() + [""]):
|
||||
@@ -139,7 +139,7 @@ python native_virtclass_handler () {
|
||||
provides = provides.replace(prov, prov + "-native")
|
||||
e.data.setVar("PROVIDES", provides)
|
||||
|
||||
bb.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native", e.data)
|
||||
e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native")
|
||||
}
|
||||
|
||||
addhandler native_virtclass_handler
|
||||
|
||||
Reference in New Issue
Block a user