event.py: Add ConfigParsed Event after configuration parsing is complete
authorRichard Purdie <rpurdie@linux.intel.com>
Sun, 29 Jul 2007 21:21:00 +0000 (21:21 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Sun, 29 Jul 2007 21:21:00 +0000 (21:21 +0000)
ChangeLog
lib/bb/cooker.py
lib/bb/event.py

index f4fc943..77011af 100644 (file)
--- 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
index 12e2f42..7db3529 100644 (file)
@@ -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:
index cfbda3e..7148a2b 100644 (file)
@@ -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"""