Commit 4a398a3c authored by Reinout van Rees's avatar Reinout van Rees

Auto-creating the extends cache, just like downloads-cache

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