summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-07-29 21:21:00 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-07-29 21:21:00 +0000
commit7df69d4d53d7f17969825d34ea0a6bb1a0fd0aab (patch)
tree0088f2c1b850da03ca5af5232fdc2c6706f0016a
parentefd1341212a84397a728e065c4e90cdcb870cf54 (diff)
downloadbitbake-7df69d4d53d7f17969825d34ea0a6bb1a0fd0aab.tar.gz
event.py: Add ConfigParsed Event after configuration parsing is complete
-rw-r--r--ChangeLog1
-rw-r--r--lib/bb/cooker.py2
-rw-r--r--lib/bb/event.py2
3 files changed, 5 insertions, 0 deletions
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"""