Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
9a0259b9
Commit
9a0259b9
authored
6 years ago
by
Valentin David
Committed by
Tristan Van Berkom
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
buildstream/plugins/sources/remote.py: Make staging deterministic.
parent
e8a3297b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!634
Deterministic staging
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildstream/plugins/sources/remote.py
+2
-0
2 additions, 0 deletions
buildstream/plugins/sources/remote.py
with
2 additions
and
0 deletions
buildstream/plugins/sources/remote.py
+
2
−
0
View file @
9a0259b9
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment