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
1 changed files with 9 additions and 0 deletions

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