Commit 4cb4e518 authored by Yusei Tahara's avatar Yusei Tahara

download, downloadunpacked: Rename 'shared-part' to 'shared-parts'. Since the...

download, downloadunpacked: Rename 'shared-part' to 'shared-parts'. Since the original option name is 'parts', 'shared-parts' is consistent.
parent 1fe04110
......@@ -53,8 +53,8 @@ class Recipe(object):
destination = options.get('destination', None)
if destination is None:
if shared and buildout['buildout'].get('shared-part', None):
shared_part = buildout['buildout'].get('shared-part', None)
if shared and buildout['buildout'].get('shared-parts', None):
shared_part = buildout['buildout'].get('shared-parts', None)
shared = os.path.join(shared_part.strip().rstrip('/'), name)
if not os.path.exists(shared):
os.makedirs(shared)
......
......@@ -50,8 +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 and buildout['buildout'].get('shared-part', None):
shared_part = buildout['buildout'].get('shared-part', None)
if shared and buildout['buildout'].get('shared-parts', None):
shared_part = buildout['buildout'].get('shared-parts', None)
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