Patchwork [bitbake-devel,3/8] event.py: Add a new event PackageInfo

login
register
mail settings
Submitter Dongxiao Xu
Date Jan. 11, 2012, 3:03 a.m.
Message ID <58f9f45f8bc0c2d20fd80a4b31747b073b5bf04e.1326249301.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/19013/
State New
Headers show

Comments

Dongxiao Xu - Jan. 11, 2012, 3:03 a.m.
This event is to pass package information.

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

Patch

diff --git a/lib/bb/event.py b/lib/bb/event.py
index 8d7f941..57bcfb5 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -467,3 +467,11 @@  class LogHandler(logging.Handler):
     def filter(self, record):
         record.taskpid = worker_pid
         return True
+
+class PackageInfo(Event):
+    """
+    Package information for GUI
+    """
+    def __init__(self, pkginfolist):
+        Event.__init__(self)
+        self._pkginfolist = pkginfolist