Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
56b871dc
Commit
56b871dc
authored
Jun 23, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lazy coupling.
If slapos.libnetworkache is not available, setup environment in no-op way.
parent
779d8687
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+10
-2
No files found.
src/zc/buildout/buildout.py
View file @
56b871dc
...
...
@@ -336,7 +336,14 @@ class Buildout(UserDict.DictMixin):
os
.
chdir
(
options
[
'directory'
])
if
LIBNETWORKCACHE_ENABLED
:
if
not
LIBNETWORKCACHE_ENABLED
:
self
.
_logger
.
warning
(
'Networkache disabled, no '
'slapos.libnetworkache available.'
)
self
.
download_cache_url
=
None
self
.
download_dir_url
=
None
self
.
upload_cache_url
=
None
self
.
upload_dir_url
=
None
else
:
# support networkcache
networkcache_section_name
=
options
.
get
(
'networkcache-section'
)
if
networkcache_section_name
:
...
...
@@ -360,7 +367,8 @@ class Buildout(UserDict.DictMixin):
options
[
'__networkcache__upload-cache-url'
]
=
self
.
upload_cache_url
options
[
'__networkcache__upload-dir-url'
]
=
self
.
upload_dir_url
else
:
self
.
_logger
.
warning
(
'Networkcache functionality not enabled.'
)
self
.
_logger
.
warning
(
'Networkcache functionality not enabled.'
'In order to activate use networkcache-section.'
)
self
.
download_cache_url
=
None
self
.
download_dir_url
=
None
self
.
upload_cache_url
=
None
...
...
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