diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/cookerdata.py | 2 | ||||
-rw-r--r-- | lib/bb/event.py | 6 | ||||
-rw-r--r-- | lib/bb/ui/knotty.py | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 4d32aa031..644bb383e 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -294,6 +294,8 @@ class CookerDataBuilder(object): mcdata = self.parseConfigurationFiles(self.prefiles, self.postfiles, config) bb.event.fire(bb.event.ConfigParsed(), mcdata) self.mcdata[config] = mcdata + if multiconfig: + bb.event.fire(bb.event.MultiConfigParsed(self.mcdata), self.data) except (SyntaxError, bb.BBHandledException): raise bb.BBHandledException diff --git a/lib/bb/event.py b/lib/bb/event.py index 6ccd4bdc3..1462382f1 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -358,6 +358,12 @@ class OperationProgress(Event): class ConfigParsed(Event): """Configuration Parsing Complete""" +class MultiConfigParsed(Event): + """Multi-Config Parsing Complete""" + def __init__(self, mcdata): + self.mcdata = mcdata + Event.__init__(self) + class RecipeEvent(Event): def __init__(self, fn): self.fn = fn diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index a19c3b3ba..936d5a4fb 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -664,6 +664,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): bb.event.MetadataEvent, bb.event.StampUpdate, bb.event.ConfigParsed, + bb.event.MultiConfigParsed, bb.event.RecipeParsed, bb.event.RecipePreFinalise, bb.runqueue.runQueueEvent, |