[bitbake-devel] [PATCH 8/9] command.py: Add a new API triggerEvent()

Dongxiao Xu dongxiao.xu at intel.com
Fri Jan 13 08:30:42 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..a2c464f 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(event, command.cooker.configuration.data)
 
 class CommandsAsync:
     """
-- 
1.7.0.4





More information about the bitbake-devel mailing list