diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-17 13:22:22 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-17 12:27:04 +0000 |
commit | 05afac450309a09f95dba4c245a521fd750964c2 (patch) | |
tree | 25f78234c97d03a2ae564e30f41d4c0f4f2a017d | |
parent | db899d30fad37dc046c6329603dafa898a8b2821 (diff) | |
download | morph-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.
-rwxr-xr-x | morph | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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): |