From 4cd96710785eb05abeff1f281878655118d4a7dd Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 25 Nov 2011 14:57:53 +0000 Subject: bitbake: Update users of getVar/setVar to use the data store functions directly Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/command.py') 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 import bb.event import bb.cooker -import bb.data async_cmds = {} sync_cmds = {} @@ -162,7 +161,7 @@ class CommandsSync: if len(params) > 1: expand = params[1] - return bb.data.getVar(varname, command.cooker.configuration.data, expand) + return command.cooker.configuration.data.getVar(varname, expand) def setVariable(self, command, params): """ @@ -170,7 +169,7 @@ class CommandsSync: """ varname = params[0] value = params[1] - bb.data.setVar(varname, value, command.cooker.configuration.data) + command.cooker.configuration.data.setVar(varname, value) def resetCooker(self, command, params): """ -- cgit v1.2.3-54-g00ecf