Commit 06bb0c98 authored by Julien Muchembled's avatar Julien Muchembled

publish: new -publish option to list explicitly options to publish

parent 0931ebe9
......@@ -44,9 +44,14 @@ class Recipe(GenericSlapRecipe):
def _install(self):
publish_dict = {}
for name in self._extend_set:
for k, v in self.buildout[name].iteritems():
if k != 'recipe' and not k.startswith('-'):
publish_dict[k] = v
section = self.buildout[name]
try:
publish = section['-publish'].split()
except KeyError:
publish = (k for k in section
if k != 'recipe' and not k.startswith('-'))
for k in publish:
publish_dict[k] = section[k]
self._setConnectionDict(publish_dict, self.options.get('-slave-reference'))
return []
......
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