summaryrefslogtreecommitdiff
path: root/morphlib/localartifactcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/localartifactcache.py')
-rw-r--r--morphlib/localartifactcache.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/morphlib/localartifactcache.py b/morphlib/localartifactcache.py
index 52b5772c..cf025210 100644
--- a/morphlib/localartifactcache.py
+++ b/morphlib/localartifactcache.py
@@ -60,17 +60,12 @@ class LocalArtifactCache(object):
filename = self._source_metadata_filename(source, cachekey, name)
return open(filename)
- def _artifact_basename(self, artifact):
- return '%s.%s.%s' % (artifact.cache_key,
- artifact.source.morphology['kind'],
- artifact.name)
-
def _artifact_filename(self, artifact):
- basename = self._artifact_basename(artifact)
+ basename = artifact.basename()
return os.path.join(self.cachedir, basename)
def _artifact_metadata_filename(self, artifact, name):
- basename = '%s.%s' % (self._artifact_basename(artifact), name)
+ basename = '%s.%s' % (artifact.basename(), name)
return os.path.join(self.cachedir, basename)