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

option is string type

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