Skip to content
Snippets Groups Projects
Commit 7692290b authored by Valentin David's avatar Valentin David
Browse files

buildstream/_artifactcache/cascache.py: Set 0644 rights to pulled files

This was broken by 9252a181.
parent b238b0ff
No related branches found
No related tags found
No related merge requests found
Pipeline #46356336 passed
......@@ -854,6 +854,7 @@ class CASCache(ArtifactCache):
with tempfile.NamedTemporaryFile(dir=self.tmpdir) as f:
self._fetch_blob(remote, digest, f)
os.chmod(f.name, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
added_digest = self.add_object(path=f.name, link_directly=True)
assert added_digest.hash == digest.hash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment