diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:57:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:35:30 +0000 |
commit | 4cd96710785eb05abeff1f281878655118d4a7dd (patch) | |
tree | f2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/lib/bb/command.py | |
parent | 0a434ac10158e2011d41a1189e65e9474b1672be (diff) | |
download | poky-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.py | 5 |
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 | ||
31 | import bb.event | 31 | import bb.event |
32 | import bb.cooker | 32 | import bb.cooker |
33 | import bb.data | ||
34 | 33 | ||
35 | async_cmds = {} | 34 | async_cmds = {} |
36 | sync_cmds = {} | 35 | sync_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 | """ |