diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-01-06 17:02:22 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-06 15:55:56 +0000 |
commit | cf13bfe6612f450c62fe56b1d204fa747fa8bfd2 (patch) | |
tree | 7db0d71ab6a288dfbe915bf83ca7bb2ee697d770 /bitbake/lib/bb/command.py | |
parent | 7d7d3a0009a6d4e91b5696771cf1ae142af957fb (diff) | |
download | poky-cf13bfe6612f450c62fe56b1d204fa747fa8bfd2.tar.gz |
command.py: add initCooker API
initCooker is to set the cooker to the initial state with nothing
parsed.
(Bitbake rev: 8ee9c6cc47938604268242d90bd3007218f9a36e)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 5dec6a9d09..701b286187 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -157,6 +157,12 @@ class CommandsSync: | |||
157 | value = params[1] | 157 | value = params[1] |
158 | command.cooker.configuration.data.setVar(varname, value) | 158 | command.cooker.configuration.data.setVar(varname, value) |
159 | 159 | ||
160 | def initCooker(self, command, params): | ||
161 | """ | ||
162 | Init the cooker to initial state with nothing parsed | ||
163 | """ | ||
164 | command.cooker.initialize() | ||
165 | |||
160 | def resetCooker(self, command, params): | 166 | def resetCooker(self, command, params): |
161 | """ | 167 | """ |
162 | Reset the cooker to its initial state, thus forcing a reparse for | 168 | Reset the cooker to its initial state, thus forcing a reparse for |