Commit 1fe04110 authored by Yusei Tahara's avatar Yusei Tahara

download, downloadunpacked: Disable shared feature by default since it is stil...

download, downloadunpacked: Disable shared feature by default since it is stil an experimental one. Enable it only if shared-part is defined.
parent e5519e41
......@@ -53,12 +53,8 @@ class Recipe(object):
destination = options.get('destination', None)
if destination is None:
if shared:
if shared and buildout['buildout'].get('shared-part', None):
shared_part = buildout['buildout'].get('shared-part', None)
if not shared_part:
raise ValueError(
" Set ${buildout:shared-part} for shared feature")
shared = os.path.join(shared_part.strip().rstrip('/'), name)
if not os.path.exists(shared):
os.makedirs(shared)
......
......@@ -50,11 +50,8 @@ class Recipe:
self.destination = self.options.get('destination', None)
self.shared = shared = is_true(options.get('shared', 'false').lower())
if self.destination is None:
if shared:
if shared and buildout['buildout'].get('shared-part', None):
shared_part = buildout['buildout'].get('shared-part', None)
if not shared_part:
raise ValueError(
" Set ${buildout:shared-part} for shared feature")
top_location = options.get('top_location', '')
shared = os.path.join(shared_part.strip().rstrip('/'), top_location, name)
if not os.path.exists(shared):
......
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