diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-07-29 21:21:00 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-07-29 21:21:00 +0000 |
commit | 7df69d4d53d7f17969825d34ea0a6bb1a0fd0aab (patch) | |
tree | 0088f2c1b850da03ca5af5232fdc2c6706f0016a | |
parent | efd1341212a84397a728e065c4e90cdcb870cf54 (diff) | |
download | bitbake-7df69d4d53d7f17969825d34ea0a6bb1a0fd0aab.tar.gz |
event.py: Add ConfigParsed Event after configuration parsing is complete
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/bb/cooker.py | 2 | ||||
-rw-r--r-- | lib/bb/event.py | 2 |
3 files changed, 5 insertions, 0 deletions
@@ -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""" |