Skip to content
Snippets Groups Projects
Commit 9a0259b9 authored by Valentin David's avatar Valentin David Committed by Tristan Van Berkom
Browse files

buildstream/plugins/sources/remote.py: Make staging deterministic.

parent e8a3297b
No related branches found
No related tags found
1 merge request!634Deterministic staging
......@@ -49,6 +49,7 @@ remote - stage files from remote urls
"""
import os
import stat
from buildstream import SourceError, utils
from ._downloadablefilesource import DownloadableFileSource
......@@ -75,6 +76,7 @@ class RemoteSource(DownloadableFileSource):
dest = os.path.join(directory, self.filename)
with self.timed_activity("Staging remote file to {}".format(dest)):
utils.safe_copy(self._get_mirror_file(), dest)
os.chmod(dest, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
def setup():
......
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