From 7df69d4d53d7f17969825d34ea0a6bb1a0fd0aab Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 29 Jul 2007 21:21:00 +0000 Subject: event.py: Add ConfigParsed Event after configuration parsing is complete --- ChangeLog | 1 + lib/bb/cooker.py | 2 ++ lib/bb/event.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index f4fc943b6..77011af7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ Changes in Bitbake 1.8.x: - Change SVNDIR layout to be more unique (fixes #2644 and #2624) - Import persistent data store from trunk - Sync fetcher code with that in trunk + - Add ConfigParsed Event after configuration parsing is complete Changes in Bitbake 1.8.6: - Correctly redirect stdin when forking diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 12e2f427c..7db3529bb 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -338,6 +338,8 @@ class BBCooker: bb.fetch.fetcher_init(self.configuration.data) + bb.event.fire(bb.event.ConfigParsed(self.configuration.data)) + except IOError: bb.msg.fatal(bb.msg.domain.Parsing, "Unable to open %s" % afile ) except bb.parse.ParseError, details: diff --git a/lib/bb/event.py b/lib/bb/event.py index cfbda3e9f..7148a2b7d 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -124,6 +124,8 @@ def getName(e): else: return e.__name__ +class ConfigParsed(Event): + """Configuration Parsing Complete""" class PkgBase(Event): """Base class for package events""" -- cgit 1.2.3-korg