summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-19 13:38:44 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-19 13:46:14 +0100
commitdf8eda23514d8a6490c8a891f7deb5fcb9ad856c (patch)
tree6c7166ccc2a5c2676b51ae514a6e1825e9a717ec /morphlib/app.py
parent296525497eddba5dc40288188a0d71248ab14366 (diff)
downloadmorph-df8eda23514d8a6490c8a891f7deb5fcb9ad856c.tar.gz
Set Morphology.needs_artifact_metadata_cached
Diffstat (limited to 'morphlib/app.py')
-rwxr-xr-xmorphlib/app.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index 96c98cf7..b478989e 100755
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -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',