1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

bitbake-dev: add a setVariable command

This is synonymous with the getVariable command and allows you to set values
in the data dictionary.
This commit is contained in:
Rob Bradford
2008-10-24 14:44:30 +01:00
parent 87fe772b8a
commit fbfc669583
+9
View File
@@ -125,6 +125,15 @@ class CommandsSync:
return bb.data.getVar(varname, command.cooker.configuration.data, expand)
def setVariable(self, command, params):
"""
Set the value of variable in configuration.data
"""
varname = params[0]
value = params[1]
bb.data.setVar(varname, value, command.cooker.configuration.data)
class CommandsAsync:
"""
A class of asynchronous commands