[bitbake-devel] [PATCH 8/9] command.py: Add a new API triggerEvent()
Dongxiao Xu
dongxiao.xu at intel.com
Thu Feb 23 13:47:20 UTC 2012
This functions enables the client to request triggering specific event
from bitbake server.
Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
---
lib/bb/command.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 43875f7..06e8869 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -179,6 +179,12 @@ class CommandsSync:
"""
return bb.utils.cpu_count()
+ def triggerEvent(self, command, params):
+ """
+ Trigger a certain event
+ """
+ event = params[0]
+ bb.event.fire(eval(event), command.cooker.configuration.data)
class CommandsAsync:
"""
--
1.7.4.1
More information about the bitbake-devel
mailing list