summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake-dev/lib/bb/command.py11
-rw-r--r--bitbake-dev/lib/bb/ui/knotty.py4
2 files changed, 12 insertions, 3 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
128class CommandsAsync: 137class CommandsAsync:
129 """ 138 """
130 A class of asynchronous commands 139 A class of asynchronous commands
diff --git a/bitbake-dev/lib/bb/ui/knotty.py b/bitbake-dev/lib/bb/ui/knotty.py
index 5e7544ea03..4b4d6b03af 100644
--- a/bitbake-dev/lib/bb/ui/knotty.py
+++ b/bitbake-dev/lib/bb/ui/knotty.py
@@ -32,8 +32,8 @@ parsespin = itertools.cycle( r'|/-\\' )
32def init(server, eventHandler): 32def init(server, eventHandler):
33 33
34 # Get values of variables which control our output 34 # Get values of variables which control our output
35 includelogs = server.runCommand(["readVariable", "BBINCLUDELOGS"]) 35 includelogs = server.runCommand(["getVariable", "BBINCLUDELOGS"])
36 loglines = server.runCommand(["readVariable", "BBINCLUDELOGS_LINES"]) 36 loglines = server.runCommand(["getVariable", "BBINCLUDELOGS_LINES"])
37 37
38 try: 38 try:
39 cmdline = server.runCommand(["getCmdLineAction"]) 39 cmdline = server.runCommand(["getCmdLineAction"])