summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2014-07-30 14:54:13 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2014-07-30 14:54:13 +0100
commitb2199074d608eee43a4dbdb4732eee71f52201f4 (patch)
treee37388729ef2105e23cfbbc89c48a999108d8f67 /scripts
parent0b8ceeca7540faab5f7750e2c95d6496ae904391 (diff)
downloaddefinitions-b2199074d608eee43a4dbdb4732eee71f52201f4.tar.gz
Allow release-build to build subsystems of defined systems
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release-build9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/release-build b/scripts/release-build
index 361d32a0..34305c67 100755
--- a/scripts/release-build
+++ b/scripts/release-build
@@ -108,9 +108,16 @@ class ReleaseApp(cliapp.Application):
assert morph['kind'] == kind
return morph, path
+ def _iterate_systems(self, system_list):
+ for system in system_list:
+ yield system['morph']
+ if 'subsystems' in system:
+ for subsystem in self._iterate_systems(system['subsystems']):
+ yield subsystem
+
def prepare_builds(self, cluster):
'''Prepare a list of builds'''
- systems = [system['morph'] for system in cluster['systems']]
+ systems = set(self._iterate_systems(cluster['systems']))
builds = []
for system_name in systems:
system, _ = self.load_morphology(system_name)