Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos.core
Commits
967c72f1
Commit
967c72f1
authored
Mar 04, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if SR is upload-blacklisted only if we have upload informations.
parent
d9c8024d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+11
-10
No files found.
slapos/grid/SlapObject.py
View file @
967c72f1
...
@@ -115,18 +115,19 @@ class Software(object):
...
@@ -115,18 +115,19 @@ class Software(object):
tar
.
close
()
tar
.
close
()
else
:
else
:
self
.
_install_from_buildout
()
self
.
_install_from_buildout
()
# Upload to binary cache if possible
# Upload to binary cache if possible and allowed
blacklisted
=
False
for
url
in
self
.
upload_to_binary_cache_url_blacklist
:
if
self
.
url
.
startswith
(
url
):
blacklisted
=
True
self
.
logger
.
debug
(
"Can't upload to binary cache: "
"Software Release URL is blacklisted."
)
if
(
self
.
software_root
and
self
.
url
and
self
.
software_url_hash
\
if
(
self
.
software_root
and
self
.
url
and
self
.
software_url_hash
\
and
self
.
upload_binary_cache_url
\
and
self
.
upload_binary_cache_url
\
and
self
.
upload_binary_dir_url
\
and
self
.
upload_binary_dir_url
):
and
not
blacklisted
):
blacklisted
=
False
self
.
uploadSoftwareRelease
(
tarpath
)
for
url
in
self
.
upload_to_binary_cache_url_blacklist
:
if
self
.
url
.
startswith
(
url
):
blacklisted
=
True
self
.
logger
.
info
(
"Can't upload to binary cache: "
"Software Release URL is blacklisted."
)
break
if
not
blacklisted
:
self
.
uploadSoftwareRelease
(
tarpath
)
finally
:
finally
:
shutil
.
rmtree
(
cache_dir
)
shutil
.
rmtree
(
cache_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment