diff options
Diffstat (limited to 'buildstream/_artifactcache/artifactcache.py')
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index a7208e8f2..4ebc79848 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -277,13 +277,13 @@ class ArtifactCache(): _ostree.fetch(self.repo, remote=remote, ref=weak_ref, progress=progress) + # resolve weak_ref to checksum + rev = _ostree.checksum(self.repo, weak_ref) + # extract strong cache key from this newly fetched artifact element._cached(recalculate=True) ref = buildref(element, element._get_cache_key_from_artifact()) - # resolve ref to checksum - rev = _ostree.checksum(self.repo, ref) - # create tag for strong cache key _ostree.set_ref(self.repo, ref, rev) else: |