summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-08-01 16:57:04 +0100
committerJürg Billeter <j@bitron.ch>2017-08-02 09:53:20 +0100
commit4d93c9b01a1a0b5d1ef888b0a1c1ecb160c0c93d (patch)
treeb000969a3344d1053030f2b7f079ee6a4491dcc4
parent64a951b4bbf0d4184ed07ea068ec16d04d7cf4ba (diff)
downloadbuildstream-bst-push.tar.gz
_artifactcache: Fix pull in non-strict modebst-push
Strong ref was not created.
-rw-r--r--buildstream/_artifactcache/artifactcache.py6
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: