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
Jérome Perrin
slapos.buildout
Commits
46a34688
Commit
46a34688
authored
Mar 12, 2014
by
Lele Gaifax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply the same logic to the extends-cache setting too
parent
04efb577
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+1
-1
src/zc/buildout/downloadcache.txt
src/zc/buildout/downloadcache.txt
+3
-3
No files found.
src/zc/buildout/buildout.py
View file @
46a34688
...
@@ -257,7 +257,7 @@ class Buildout(DictMixin):
...
@@ -257,7 +257,7 @@ class Buildout(DictMixin):
# and considering the location of the configuration file that generated
# and considering the location of the configuration file that generated
# the setting as the base path, falling back to the main configuration
# the setting as the base path, falling back to the main configuration
# file location
# file location
for
name
in
(
'download-cache'
,
'eggs-directory'
):
for
name
in
(
'download-cache'
,
'eggs-directory'
,
'extends-cache'
):
if
name
in
data
[
'buildout'
]:
if
name
in
data
[
'buildout'
]:
origdir
,
src
=
data
[
'buildout'
][
name
]
origdir
,
src
=
data
[
'buildout'
][
name
]
if
'${'
in
origdir
:
if
'${'
in
origdir
:
...
...
src/zc/buildout/downloadcache.txt
View file @
46a34688
...
@@ -163,9 +163,9 @@ created, provided it is within an already existing directory::
...
@@ -163,9 +163,9 @@ created, provided it is within an already existing directory::
Using relative paths
Using relative paths
--------------------
--------------------
You can use a relative path for ``download-cache`` (the same logic is applied
You can use a relative path for ``download-cache`` (the same logic is applied
to
to ``eggs-directory`` too) and in such case it is considered relative to the
``eggs-directory`` and to ``extends-cache`` too) and in such case it is considered
location of the configuration file that sets its value.
relative to the
location of the configuration file that sets its value.
As an example, we create a ``base.cfg`` configuration in a different directory::
As an example, we create a ``base.cfg`` configuration in a different directory::
...
...
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