summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-23 21:47:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:52:15 +0000
commitb70bcb353d576887e6b6c15e636d9102fe9b6799 (patch)
treed40b38746823805c5774b703d90b2ca2f9702c9f /bitbake
parent8e737db4fc2ab90850c2fe91733011dc4e0a24df (diff)
downloadpoky-b70bcb353d576887e6b6c15e636d9102fe9b6799.tar.gz
event.py: Add new events RequestPackageInfo and PackageInfo
RequestPackageInfo is triggered by GUI client to request the available package information. PackageInfo event is to pass package information back to GUI. (Bitbake rev: 9020c2d4476766f63ff7e024bbd99043d06feefc) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/event.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 8d7f9413e0..10036c05c9 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -467,3 +467,16 @@ class LogHandler(logging.Handler):
467 def filter(self, record): 467 def filter(self, record):
468 record.taskpid = worker_pid 468 record.taskpid = worker_pid
469 return True 469 return True
470
471class RequestPackageInfo(Event):
472 """
473 Event to request package information
474 """
475
476class PackageInfo(Event):
477 """
478 Package information for GUI
479 """
480 def __init__(self, pkginfolist):
481 Event.__init__(self)
482 self._pkginfolist = pkginfolist