Commit af67d12f authored by Rafael Monnerat's avatar Rafael Monnerat

Merge branch 'bug_717802' into fork

parents a4948d1a a98cee9c
...@@ -1389,6 +1389,8 @@ def _open(base, filename, seen, dl_options, override, downloaded): ...@@ -1389,6 +1389,8 @@ def _open(base, filename, seen, dl_options, override, downloaded):
_dl_options = _unannotate_section(dl_options.copy()) _dl_options = _unannotate_section(dl_options.copy())
newest = _convert_bool('newest', _dl_options.get('newest', 'false')) newest = _convert_bool('newest', _dl_options.get('newest', 'false'))
fallback = newest and not (filename in downloaded) fallback = newest and not (filename in downloaded)
if _isurl(base):
fallback = fallback and not (base + '/' + filename in downloaded)
download = zc.buildout.download.Download( download = zc.buildout.download.Download(
_dl_options, cache=_dl_options.get('extends-cache'), _dl_options, cache=_dl_options.get('extends-cache'),
fallback=fallback, hash_name=True) fallback=fallback, hash_name=True)
......
...@@ -457,12 +457,18 @@ used: ...@@ -457,12 +457,18 @@ used:
... extends = %sbase.cfg ... extends = %sbase.cfg
... bar = foo ... bar = foo
... """ % server_url) ... """ % server_url)
>>> write(server_data, 'baseC.cfg', """\
... [buildout]
... extends-cache = cache
... extends = baseB.cfg
... bar = foo
... """)
>>> write('buildout.cfg', """\ >>> write('buildout.cfg', """\
... [buildout] ... [buildout]
... extends-cache = cache ... extends-cache = cache
... newest = true ... newest = true
... extends = %sbaseA.cfg %sbaseB.cfg ... extends = %sbaseA.cfg %sbaseB.cfg %sbaseC.cfg
... """ % (server_url, server_url)) ... """ % (server_url, server_url, server_url))
>>> print system(buildout + " -n") >>> print system(buildout + " -n")
Unused options for buildout: 'bar' 'foo'. Unused options for buildout: 'bar' 'foo'.
...@@ -480,6 +486,7 @@ a better solution would utilise the logging already done by the utility.) ...@@ -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/baseA.cfg was downloaded.
The URL http://localhost/base.cfg was downloaded. The URL http://localhost/base.cfg was downloaded.
The URL http://localhost/baseB.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'. Unused options for buildout: 'bar' 'foo'.
>>> zc.buildout.download.Download.download = old_download >>> zc.buildout.download.Download.download = old_download
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment