summaryrefslogtreecommitdiff
path: root/src/buildstream/_artifactcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_artifactcache.py')
-rw-r--r--src/buildstream/_artifactcache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py
index f8d856be7..b4d4efe00 100644
--- a/src/buildstream/_artifactcache.py
+++ b/src/buildstream/_artifactcache.py
@@ -560,7 +560,8 @@ class ArtifactCache(BaseCache):
artifact_proto = artifact._get_proto()
try:
- self.cas._send_directory(remote, artifact_proto.files)
+ if str(artifact_proto.files):
+ self.cas._send_directory(remote, artifact_proto.files)
if str(artifact_proto.buildtree):
try: