Commit ecbe4013 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5c117dee
...@@ -14,10 +14,16 @@ parts = ZEO/scripts ...@@ -14,10 +14,16 @@ parts = ZEO/scripts
recipe = slapos.recipe.build recipe = slapos.recipe.build
depends = ${ZODB:egg} depends = ${ZODB:egg}
init = init =
# XXX ZODB3 -> just link to ZODB3
# link/depend to ZEO<ZODB.major>
zodb = self.buildout['ZODB'] zodb = self.buildout['ZODB']
zeo_x = 'ZEO'+zodb['major'] zmajor = zodb['major']
# ZODB3 -> just link ZEO to ZODB3 (ZEO3 is part of ZODB3)
if zmajor == '3':
options['egg'] = '$${ZODB:egg}'
# ZODB{4,5}: link/depend to ZEO<ZODB.major>
else:
zeo_x = 'ZEO'+zmajor
options['depends'] += '$${%s:egg}' % zeo_x options['depends'] += '$${%s:egg}' % zeo_x
zeo_x = self.buildout[zeo_x] zeo_x = self.buildout[zeo_x]
options['egg'] = zeo_x['egg'] options['egg'] = zeo_x['egg']
......
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