summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-17 13:22:22 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-17 12:27:04 +0000
commit05afac450309a09f95dba4c245a521fd750964c2 (patch)
tree25f78234c97d03a2ae564e30f41d4c0f4f2a017d /morph
parentdb899d30fad37dc046c6329603dafa898a8b2821 (diff)
downloadmorph-05afac450309a09f95dba4c245a521fd750964c2.tar.gz
morph: when bootstrapping, install all chunks
Before we would only install chunks that are needed to build something else. This is potentially a bad idea when bootstrapping, since it is expected to install everything when bootstrapping. It was possible to build and install chunks using --bootstrap.
Diffstat (limited to 'morph')
-rwxr-xr-xmorph9
1 files changed, 9 insertions, 0 deletions
diff --git a/morph b/morph
index 91fb2122..86d20721 100755
--- a/morph
+++ b/morph
@@ -310,6 +310,15 @@ class Morph(cliapp.Application):
[x for x in group
if x.source.morphology['kind'] == 'chunk'])
+ # If we are running bootstrap we probably also want the last
+ # build group to be installed as well
+ if self.settings['bootstrap']:
+ for chunk_artifact in to_be_installed:
+ logging.debug('Installing %s' % chunk_artifact.name)
+ self.msg(' Installing %s' % chunk_artifact.name)
+ handle = lac.get(chunk_artifact)
+ staging_area.install_artifact(handle)
+
if staging_root != '/':
staging_area.remove()
if staging_temp != '/' and os.path.exists(staging_temp):