summaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-06 12:58:29 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-06 12:58:29 +0000
commit6bc2abc8d569b813ad5507d0b6600889983e80fd (patch)
tree712f40d5075c4988c29e464d8c7d7c304611fc9a /lib/bb/command.py
parentf7d2413939ba15b024a853c960c27d22a4a3ac4e (diff)
downloadbitbake-6bc2abc8d569b813ad5507d0b6600889983e80fd.tar.gz
command.py: Standardise to getVariable and setVariable functions for consistent naming
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index f86e0f191..b94756649 100644
--- a/lib/bb/command.py
+++ b/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