diff options
author | Rob Bradford <rob@linux.intel.com> | 2008-10-24 14:44:30 +0100 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2008-10-24 14:44:30 +0100 |
commit | fbfc669583328a6df2415ecc6343bba509e44459 (patch) | |
tree | 02d8d1bcd322871174449f6ce7ef7ee550fe86c2 /bitbake-dev | |
parent | 87fe772b8a208d3366be9ab3b605b2e8edda6b50 (diff) | |
download | openembedded-core-fbfc669583328a6df2415ecc6343bba509e44459.tar.gz openembedded-core-fbfc669583328a6df2415ecc6343bba509e44459.tar.bz2 openembedded-core-fbfc669583328a6df2415ecc6343bba509e44459.zip |
bitbake-dev: add a setVariable command
This is synonymous with the getVariable command and allows you to set values
in the data dictionary.
Diffstat (limited to 'bitbake-dev')
-rw-r--r-- | bitbake-dev/lib/bb/command.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 293202be54..0d4ef42569 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py @@ -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 |