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