Commit 1f5d81ea authored by Rafael Monnerat's avatar Rafael Monnerat

Consider extends from relative URL

parent f0d0ef63
......@@ -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)
......
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