summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-02 17:42:29 +0100
committerTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-03 10:57:30 +0100
commit34a2ed8107f8fc6aaade2215f8283648d5185905 (patch)
tree0d644772841cc07784e513208ac3610d5dd1e4cf
parent7b01abe7e3ecd3bcb68565ef7a67b9f1a03be876 (diff)
downloadbuildstream-tiagogomes/issue-500.tar.gz
cas: ignore files of type sockettiagogomes/issue-500
These files are automatically generated on the bind() syscall and thus can be safely ignored. This fixes caching the build tree of projects that create a socket as part of their tests. Closes #500.
-rw-r--r--buildstream/_artifactcache/cascache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 1b2dc198f..2cf91def4 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -612,6 +612,8 @@ class CASCache(ArtifactCache):
symlinknode = directory.symlinks.add()
symlinknode.name = name
symlinknode.target = os.readlink(full_path)
+ elif stat.S_ISSOCK(mode):
+ pass
else:
raise ArtifactError("Unsupported file type for {}".format(full_path))