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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.buildout
Commits
4a398a3c
Commit
4a398a3c
authored
Jul 01, 2015
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto-creating the extends cache, just like downloads-cache
parent
f065f617
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+6
-5
No files found.
src/zc/buildout/buildout.py
View file @
4a398a3c
...
...
@@ -390,6 +390,12 @@ class Buildout(DictMixin):
zc
.
buildout
.
easy_install
.
download_cache
(
download_cache
)
extends_cache
=
options
.
get
(
'extends-cache'
)
if
extends_cache
:
extends_cache
=
os
.
path
.
join
(
options
[
'directory'
],
extends_cache
)
if
not
os
.
path
.
exists
(
extends_cache
):
os
.
mkdir
(
extends_cache
)
if
bool_option
(
options
,
'install-from-cache'
):
if
self
.
offline
:
raise
zc
.
buildout
.
UserError
(
...
...
@@ -403,11 +409,6 @@ class Buildout(DictMixin):
for
name
in
_buildout_default_options
:
options
[
name
]
# Do the same for extends-cache which is not among the defaults but
# wasn't recognized as having been used since it was used before
# tracking was turned on.
options
.
get
(
'extends-cache'
)
os
.
chdir
(
options
[
'directory'
])
def
_buildout_path
(
self
,
name
):
...
...
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