summaryrefslogtreecommitdiff
path: root/morphlib/localartifactcache.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-19 16:49:55 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-19 16:51:15 +0100
commit9dcffcaa08dfc40fd49969719fa3b984802fafe5 (patch)
treefc266ceb7f7b3e853814da0ad35196ecf2df4da3 /morphlib/localartifactcache.py
parentac0a1bb2491147951e000ce8d4d439b8a2fac7dd (diff)
downloadmorph-9dcffcaa08dfc40fd49969719fa3b984802fafe5.tar.gz
Add RemoteArtifactCache. Move metadata basename code into Artifact.
Diffstat (limited to 'morphlib/localartifactcache.py')
-rw-r--r--morphlib/localartifactcache.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/localartifactcache.py b/morphlib/localartifactcache.py
index cf025210..83a668e4 100644
--- a/morphlib/localartifactcache.py
+++ b/morphlib/localartifactcache.py
@@ -65,10 +65,9 @@ class LocalArtifactCache(object):
return os.path.join(self.cachedir, basename)
def _artifact_metadata_filename(self, artifact, name):
- basename = '%s.%s' % (artifact.basename(), name)
+ basename = artifact.metadata_basename(name)
return os.path.join(self.cachedir, basename)
-
def _source_metadata_filename(self, source, cachekey, name):
basename = '%s.%s' % (cachekey, name)
return os.path.join(self.cachedir, basename)