summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-23 21:47:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:52:16 +0000
commit85fa989df7a4928e42aad2eb5f34a5f3c2c9ae93 (patch)
treedb7170fca22aa350f7897d85fa8874ca4f144cc3
parentcb873084d0a29db4de571c01041f64ad390e1a2f (diff)
downloadpoky-85fa989df7a4928e42aad2eb5f34a5f3c2c9ae93.tar.gz
command.py: Add a new API triggerEvent()
This functions enables the client to request triggering specific event from bitbake server. (Bitbake rev: 45da6d709a69697158fae92e1c0c0a6ac8f30831) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/command.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 4e9e8d657e..be269372f0 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -179,6 +179,12 @@ class CommandsSync:
179 """ 179 """
180 return bb.utils.cpu_count() 180 return bb.utils.cpu_count()
181 181
182 def triggerEvent(self, command, params):
183 """
184 Trigger a certain event
185 """
186 event = params[0]
187 bb.event.fire(eval(event), command.cooker.configuration.data)
182 188
183class CommandsAsync: 189class CommandsAsync:
184 """ 190 """