summaryrefslogtreecommitdiff
path: root/morphlib/plugins/build_plugin.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2014-10-27 13:28:53 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-10-27 13:28:53 +0000
commit79c06711f47d39bdff6d84c2736d88b99ef35b9c (patch)
tree4a0774f36f9034d8d3a1d7f4d010fad7a80f2cd8 /morphlib/plugins/build_plugin.py
parentee8b0047ae5a5e7c64f32197cdf20d552a49cd9e (diff)
parent5e823a4f36f30c59a473f22f824dfd6f6c66c89f (diff)
downloadmorph-79c06711f47d39bdff6d84c2736d88b99ef35b9c.tar.gz
Merge branch 'master' of git://git.baserock.org/baserock/baserock/morph into HEAD
Diffstat (limited to 'morphlib/plugins/build_plugin.py')
-rw-r--r--morphlib/plugins/build_plugin.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/morphlib/plugins/build_plugin.py b/morphlib/plugins/build_plugin.py
index 64630c2b..218bd819 100644
--- a/morphlib/plugins/build_plugin.py
+++ b/morphlib/plugins/build_plugin.py
@@ -56,7 +56,8 @@ class BuildPlugin(cliapp.Plugin):
build_command = morphlib.buildcommand.InitiatorBuildCommand(
self.app, addr, port)
- build_command.build(args)
+ for repo_name, ref, filename in self.app.itertriplets(args):
+ build_command.build(repo_name, ref, filename)
def distbuild(self, args):
'''Distbuild a system image in the current system branch
@@ -116,7 +117,8 @@ class BuildPlugin(cliapp.Plugin):
self.app.settings['cachedir-min-space'])
build_command = morphlib.buildcommand.BuildCommand(self.app)
- build_command.build(args)
+ for repo_name, ref, filename in self.app.itertriplets(args):
+ build_command.build(repo_name, ref, filename)
def build(self, args):
'''Build a system image in the current system branch
@@ -189,5 +191,6 @@ class BuildPlugin(cliapp.Plugin):
bb, loader=loader, changes_need_pushing=push,
name=name, email=email, build_uuid=build_uuid,
status=self.app.status)
- with pbb as (repo, ref):
- build_command.build([repo, ref, system_filename])
+ with pbb as (repo, commit, original_ref):
+ build_command.build(repo, commit, system_filename,
+ original_ref=original_ref)