[bitbake-devel,07/16] event.py: Add a new event PackageInfo

Submitted by Dongxiao Xu on Jan. 6, 2012, 9:02 a.m.

Details

Message ID 1731e995b122ecad7ade0c259cfa4aaad6291135.1325840050.git.dongxiao.xu@intel.com
State New
Headers show

Commit Message

Dongxiao Xu Jan. 6, 2012, 9:02 a.m.
This event is to pass package information.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/event.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/event.py b/lib/bb/event.py
index 088cd7c..67543e7 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -459,3 +459,12 @@  class LogHandler(logging.Handler):
     def filter(self, record):
         record.taskpid = worker_pid
         return True
+
+class PackageInfo(Event):
+    """
+    Package information for GUI
+    """
+    def __init__(self, recipe, pkginfolist):
+        Event.__init__(self)
+        self._recipe = recipe
+        self._pkginfolist = pkginfolist