summaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-01-06 17:02:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-06 15:54:45 +0000
commit8ee9c6cc47938604268242d90bd3007218f9a36e (patch)
treedbc463a601c846298c136c0095048b3cae793e88 /lib/bb/command.py
parent487a124942fd5cd9de71413b79a4049a6d26f1e8 (diff)
downloadbitbake-8ee9c6cc47938604268242d90bd3007218f9a36e.tar.gz
command.py: add initCooker API
initCooker is to set the cooker to the initial state with nothing parsed. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 5dec6a9d0..701b28618 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -157,6 +157,12 @@ class CommandsSync:
value = params[1]
command.cooker.configuration.data.setVar(varname, value)
+ def initCooker(self, command, params):
+ """
+ Init the cooker to initial state with nothing parsed
+ """
+ command.cooker.initialize()
+
def resetCooker(self, command, params):
"""
Reset the cooker to its initial state, thus forcing a reparse for