[bitbake-devel] [PATCH 3/9] event.py: Add new events RequestPackageInfo and PackageInfo
Dongxiao Xu
dongxiao.xu at intel.com
Thu Feb 23 13:47:15 UTC 2012
RequestPackageInfo is triggered by GUI client to request the available
package information.
PackageInfo event is to pass package information back to GUI.
Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
---
lib/bb/event.py | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 8d7f941..10036c0 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -467,3 +467,16 @@ class LogHandler(logging.Handler):
def filter(self, record):
record.taskpid = worker_pid
return True
+
+class RequestPackageInfo(Event):
+ """
+ Event to request package information
+ """
+
+class PackageInfo(Event):
+ """
+ Package information for GUI
+ """
+ def __init__(self, pkginfolist):
+ Event.__init__(self)
+ self._pkginfolist = pkginfolist
--
1.7.4.1
More information about the bitbake-devel
mailing list