summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2018-09-19 12:25:22 +0100
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-09-21 11:53:11 +0100
commitaa9caaac21cc5484792792615ba6ea4ac19a2f14 (patch)
treeb0b7d54a5db26e7e79b21199e5acc0ee769032c1
parent461a0588175b415a89849f7f6c35cf83f94acfc1 (diff)
downloadbuildstream-aa9caaac21cc5484792792615ba6ea4ac19a2f14.tar.gz
_sandboxremote.py: Ignore return value of push_directory
The return value is always upload_vdir.ref.
-rw-r--r--buildstream/sandbox/_sandboxremote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/sandbox/_sandboxremote.py b/buildstream/sandbox/_sandboxremote.py
index 82968ecb0..2fca53a96 100644
--- a/buildstream/sandbox/_sandboxremote.py
+++ b/buildstream/sandbox/_sandboxremote.py
@@ -173,8 +173,8 @@ class SandboxRemote(Sandbox):
platform = Platform.get_platform()
cascache = platform.artifactcache
# Now, push that key (without necessarily needing a ref) to the remote.
- vdir_digest = cascache.push_directory(self._get_project(), upload_vdir)
- if not vdir_digest or not cascache.verify_digest_pushed(self._get_project(), vdir_digest):
+ cascache.push_directory(self._get_project(), upload_vdir)
+ if not cascache.verify_digest_pushed(self._get_project(), upload_vdir.ref):
raise SandboxError("Failed to verify that source has been pushed to the remote artifact cache.")
# Set up environment and working directory