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:
parent
87fe772b8a
commit
fbfc669583
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue