From: Rob Bradford Date: Fri, 24 Oct 2008 13:44:30 +0000 (+0100) Subject: bitbake-dev: add a setVariable command X-Git-Tag: 2011-1~7951 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=fbfc669583328a6df2415ecc6343bba509e44459;p=openembedded-core.git bitbake-dev: add a setVariable command This is synonymous with the getVariable command and allows you to set values in the data dictionary. --- 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