Commit 73249a77 authored by Julien Muchembled's avatar Julien Muchembled

publish-early: document a user error

parent 11210de0
Pipeline #8146 failed with stage
......@@ -28,6 +28,7 @@
from collections import OrderedDict
from .librecipe import unwrap, wrap, GenericSlapRecipe
import six
from zc.buildout import UserError
def volatileOptions(options, volatile):
def copy():
......@@ -125,7 +126,8 @@ class Recipe(GenericSlapRecipe):
pass
buildout.Options = newOptions
init_section = buildout[init_section]
assert buildout.Options is Options
if buildout.Options is not Options:
raise UserError("%s section was already initialized" % init_section)
new = {}
for k, v in six.iteritems(init):
try:
......
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