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
isaak yansane-sisk
slapos.buildout
Commits
af67d12f
Commit
af67d12f
authored
May 20, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug_717802' into fork
parents
a4948d1a
a98cee9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+2
-0
src/zc/buildout/extends-cache.txt
src/zc/buildout/extends-cache.txt
+9
-2
No files found.
src/zc/buildout/buildout.py
View file @
af67d12f
...
...
@@ -1389,6 +1389,8 @@ def _open(base, filename, seen, dl_options, override, downloaded):
_dl_options
=
_unannotate_section
(
dl_options
.
copy
())
newest
=
_convert_bool
(
'newest'
,
_dl_options
.
get
(
'newest'
,
'false'
))
fallback
=
newest
and
not
(
filename
in
downloaded
)
if
_isurl
(
base
):
fallback
=
fallback
and
not
(
base
+
'/'
+
filename
in
downloaded
)
download
=
zc
.
buildout
.
download
.
Download
(
_dl_options
,
cache
=
_dl_options
.
get
(
'extends-cache'
),
fallback
=
fallback
,
hash_name
=
True
)
...
...
src/zc/buildout/extends-cache.txt
View file @
af67d12f
...
...
@@ -457,12 +457,18 @@ used:
... extends = %sbase.cfg
... bar = foo
... """ % server_url)
>>> write(server_data, 'baseC.cfg', """\
... [buildout]
... extends-cache = cache
... extends = baseB.cfg
... bar = foo
... """)
>>> write('buildout.cfg', """\
... [buildout]
... extends-cache = cache
... newest = true
... extends = %sbaseA.cfg %sbaseB.cfg
... """ % (server_url, server_url))
... extends = %sbaseA.cfg %sbaseB.cfg
%sbaseC.cfg
... """ % (server_url, server_url
, server_url
))
>>> print system(buildout + " -n")
Unused options for buildout: 'bar' 'foo'.
...
...
@@ -480,6 +486,7 @@ a better solution would utilise the logging already done by the utility.)
The URL http://localhost/baseA.cfg was downloaded.
The URL http://localhost/base.cfg was downloaded.
The URL http://localhost/baseB.cfg was downloaded.
The URL http://localhost/baseC.cfg was downloaded.
Unused options for buildout: 'bar' 'foo'.
>>> zc.buildout.download.Download.download = old_download
...
...
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