Commit 7eca74fe authored by Xiaowu Zhang's avatar Xiaowu Zhang

option is string type

parent 8de6357b
......@@ -43,6 +43,7 @@ class Recipe(object):
self._name = name
mode = options.get('mode')
log = logging.getLogger(name)
self._shared = shared = (options.get('shared', '').lower() == 'true')
if mode is not None:
mode = int(mode, 8)
self._mode = mode
......@@ -52,8 +53,6 @@ class Recipe(object):
destination = options.get('destination', None)
if destination is None:
shared = options.get('shared')
self._shared = shared
if shared:
shared_part = buildout['buildout'].get('shared-part', None)
if not shared_part:
......
......@@ -48,7 +48,7 @@ class Recipe:
'exclusive.')
self.parts = None
self.destination = self.options.get('destination', None)
self.shared = shared = options.get('shared', '')
self.shared = shared = is_true(options.get('shared', '').lower())
if self.destination is None:
if shared:
shared_part = buildout['buildout'].get('shared-part', None)
......
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