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 7cee1d5d36..0d4ef42569 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py | |||
@@ -114,7 +114,7 @@ class CommandsSync: | |||
114 | """ | 114 | """ |
115 | return command.cooker.commandlineAction | 115 | return command.cooker.commandlineAction |
116 | 116 | ||
117 | def readVariable(self, command, params): | 117 | def getVariable(self, command, params): |
118 | """ | 118 | """ |
119 | Read the value of a variable from configuration.data | 119 | Read the value of a variable from configuration.data |
120 | """ | 120 | """ |
@@ -125,6 +125,15 @@ class CommandsSync: | |||
125 | 125 | ||
126 | return bb.data.getVar(varname, command.cooker.configuration.data, expand) | 126 | return bb.data.getVar(varname, command.cooker.configuration.data, expand) |
127 | 127 | ||
128 | def setVariable(self, command, params): | ||
129 | """ | ||
130 | Set the value of variable in configuration.data | ||
131 | """ | ||
132 | varname = params[0] | ||
133 | value = params[1] | ||
134 | bb.data.setVar(varname, value, command.cooker.configuration.data) | ||
135 | |||
136 | |||
128 | class CommandsAsync: | 137 | class CommandsAsync: |
129 | """ | 138 | """ |
130 | A class of asynchronous commands | 139 | A class of asynchronous commands |