diff options
Diffstat (limited to 'bitbake-dev/lib/bb/command.py')
-rw-r--r-- | bitbake-dev/lib/bb/command.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 7cee1d5d3..0d4ef4256 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py @@ -114,7 +114,7 @@ class CommandsSync: """ return command.cooker.commandlineAction - def readVariable(self, command, params): + def getVariable(self, command, params): """ Read the value of a variable from configuration.data """ @@ -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 |