summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-07-12 15:38:02 +0200
committerJürg Billeter <j@bitron.ch>2017-07-14 14:13:51 +0200
commit781fc131baae942cc8e17676297cb679f7d5320b (patch)
treecc0105cd71f9d4ad6b8b3b3632aaa540eba9df32
parent8519df3373904a9ba51845dc2c7df66675103f1c (diff)
downloadbuildstream-781fc131baae942cc8e17676297cb679f7d5320b.tar.gz
pullqueue.py: Recalculate cache_key_from_artifact after pulling
-rw-r--r--buildstream/_scheduler/pullqueue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/_scheduler/pullqueue.py b/buildstream/_scheduler/pullqueue.py
index 6356acaa9..4a6cafc1c 100644
--- a/buildstream/_scheduler/pullqueue.py
+++ b/buildstream/_scheduler/pullqueue.py
@@ -47,7 +47,8 @@ class PullQueue(Queue):
return False
# return code is 0 even if artifact was unavailable
- element._cached(recalculate=True)
+ if element._cached(recalculate=True):
+ element._get_cache_key_from_artifact(recalculate=True)
# Element._pull() returns True if it downloaded an artifact,
# here we want to appear skipped if we did not download.