From patchwork Thu Dec 15 07:14:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,07/10] event.py: Add a new event PackageInfo Date: Thu, 15 Dec 2011 07:14:58 -0000 From: Dongxiao Xu X-Patchwork-Id: 16985 Message-Id: <8777803468ca20a18696e9605fc08ed32d068bd7.1323933009.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org This event is to pass package information. Signed-off-by: Dongxiao Xu --- lib/bb/event.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) 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