summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-25 14:57:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-27 10:35:30 +0000
commit4cd96710785eb05abeff1f281878655118d4a7dd (patch)
treef2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/lib/bb/command.py
parent0a434ac10158e2011d41a1189e65e9474b1672be (diff)
downloadpoky-4cd96710785eb05abeff1f281878655118d4a7dd.tar.gz
bitbake: Update users of getVar/setVar to use the data store functions directly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 41796f629e..1808f0c7e5 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -30,7 +30,6 @@ Commands are queued in a CommandQueue
30 30
31import bb.event 31import bb.event
32import bb.cooker 32import bb.cooker
33import bb.data
34 33
35async_cmds = {} 34async_cmds = {}
36sync_cmds = {} 35sync_cmds = {}
@@ -162,7 +161,7 @@ class CommandsSync:
162 if len(params) > 1: 161 if len(params) > 1:
163 expand = params[1] 162 expand = params[1]
164 163
165 return bb.data.getVar(varname, command.cooker.configuration.data, expand) 164 return command.cooker.configuration.data.getVar(varname, expand)
166 165
167 def setVariable(self, command, params): 166 def setVariable(self, command, params):
168 """ 167 """
@@ -170,7 +169,7 @@ class CommandsSync:
170 """ 169 """
171 varname = params[0] 170 varname = params[0]
172 value = params[1] 171 value = params[1]
173 bb.data.setVar(varname, value, command.cooker.configuration.data) 172 command.cooker.configuration.data.setVar(varname, value)
174 173
175 def resetCooker(self, command, params): 174 def resetCooker(self, command, params):
176 """ 175 """