summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-06 15:40:33 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-06 15:40:33 +0100
commite129ee7d23add77ecc06c4e2ba7c63c18b8dfa50 (patch)
tree970a697b3e58d74d2018f69c7799e66759f92d10
parentbc0ba7cd2898b4d805525824bba55fba795379d6 (diff)
parent8460033ef43eb6cfcb55e26debf08c6870a02652 (diff)
downloadmorph-e129ee7d23add77ecc06c4e2ba7c63c18b8dfa50.tar.gz
Merge branch 'master' of roadtrain.codethink.co.uk:baserock/morph
-rwxr-xr-xmorphlib/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index c588f381..5d5a2039 100755
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -458,6 +458,9 @@ class Morph(cliapp.Application):
cliapp.Application.setup_plugin_manager(self)
s = os.environ.get('MORPH_PLUGIN_PATH', '')
self.pluginmgr.locations += s.split(':')
+
+ self.hookmgr = cliapp.HookManager()
+ self.hookmgr.new('new-build-command', cliapp.FilterHook())
def _itertriplets(self, args):
'''Generate repo, ref, filename triples from args.'''
@@ -509,6 +512,7 @@ class Morph(cliapp.Application):
'''
build_command = BuildCommand(self)
+ build_command = self.hookmgr.call('new-build-command', build_command)
build_command.build(args)
def cmd_show_dependencies(self, args):