diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-06 15:40:33 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-06 15:40:33 +0100 |
commit | e129ee7d23add77ecc06c4e2ba7c63c18b8dfa50 (patch) | |
tree | 970a697b3e58d74d2018f69c7799e66759f92d10 | |
parent | bc0ba7cd2898b4d805525824bba55fba795379d6 (diff) | |
parent | 8460033ef43eb6cfcb55e26debf08c6870a02652 (diff) | |
download | morph-e129ee7d23add77ecc06c4e2ba7c63c18b8dfa50.tar.gz |
Merge branch 'master' of roadtrain.codethink.co.uk:baserock/morph
-rwxr-xr-x | morphlib/app.py | 4 |
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): |