Commit 41d13aa0 authored by Xiaowu Zhang's avatar Xiaowu Zhang

option is string type

parent 2f3e5d82
......@@ -40,8 +40,8 @@ class Recipe(object):
self.original_options = options.copy()
options.update(platform_options)
shared = options.get('shared', '')
if shared:
shared = options.get('shared', '').lower()
if shared == 'true':
shared_part = buildout['buildout'].get('shared-part', None)
if not shared_part:
raise ValueError(
......@@ -329,7 +329,7 @@ class Recipe(object):
opt['destination'] = compile_dir
opt['strip-top-level-dir'] = 'false'
# no need to shared build for compile dir
opt['shared'] = False
opt['shared'] = 'False'
slapos.recipe.downloadunpacked.Recipe(
self.buildout, self.name, opt).install()
except:
......
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