diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-23 14:59:57 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-23 14:59:57 +0100 |
commit | 82ae6038c00ca7ceb0e1ed206bd07157e1658f50 (patch) | |
tree | cff2b166c37740b2301145bc0b44c647bd7b12a4 /morphlib/app.py | |
parent | e14084d535ddf37722da692133e9000d8f55a5d5 (diff) | |
parent | dfaf624b1fb97c2208bf03b9ff314c5566575e5f (diff) | |
download | morph-82ae6038c00ca7ceb0e1ed206bd07157e1658f50.tar.gz |
Merge branch 'liw/require-system-kind'
Reviewed-By: Richard Maw
Reviewed-By: Lars Wirzenius
Diffstat (limited to 'morphlib/app.py')
-rwxr-xr-x | morphlib/app.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/morphlib/app.py b/morphlib/app.py index 3a875234..86575fcd 100755 --- a/morphlib/app.py +++ b/morphlib/app.py @@ -211,7 +211,7 @@ class BuildCommand(object): self.cache_artifacts_locally(deps) staging_area = self.create_staging_area(artifact) if self.app.settings['staging-chroot']: - if artifact.source.morphology['kind'] != 'stratum': + if artifact.source.morphology.needs_staging_area: self.install_fillers(staging_area) self.install_chunk_artifacts(staging_area, deps) @@ -288,9 +288,7 @@ class BuildCommand(object): name=artifact.name) copy(self.rac.get(artifact), self.lac.put(artifact)) - # For strata we also need the metadata in the local cache. - # FIXME: why do we need it and can we fix things so we don't? - if artifact.source.morphology['kind'] == 'stratum': + if artifact.source.morphology.needs_artifact_metadata_cached: if not self.lac.has_artifact_metadata(artifact, 'meta'): self.app.status(msg='Fetching to local cache: ' 'artifact metadata %(name)s', |