Commit 331ac2b0 authored by jim's avatar jim

Bug 92891: bootstrap crashes with recipe option in buildout section.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@75601 62d5b8a3-27da-0310-9561-8e5933582275
parent 5c4cef09
......@@ -20,6 +20,10 @@ Feature Changes
- Improved error reporting by showing which packages require other
packages that can't be found or that cause version conflicts.
Bugs Fixed
----------
- 92891: bootstrap crashes with recipe option in buildout section.
1.0.0b23 (2007-03-19)
=====================
......
......@@ -797,6 +797,9 @@ class Options(UserDict.DictMixin):
if '${' in v:
self._dosub(k, v)
if self.name == 'buildout':
return # buildout section can never be a part
recipe = self.get('recipe')
if not recipe:
return
......
......@@ -796,6 +796,37 @@ bootstrapping.
zc.buildout.easy_install: Generated script /sample-bootstrap/bin/buildout.
"""
def bug_92891_bootstrap_crashes_with_egg_recipe_in_buildout_section():
"""
>>> d = tmpdir('sample-bootstrap')
>>> write(d, 'buildout.cfg',
... '''
... [buildout]
... parts = buildout
... eggs-directory = eggs
...
... [buildout]
... recipe = zc.recipe.egg
... eggs = zc.buildout
... scripts = buildout=buildout
... ''')
>>> os.chdir(d)
>>> print system(os.path.join(sample_buildout, 'bin', 'buildout')
... + ' bootstrap'),
buildout: Creating directory /sample-bootstrap/bin
buildout: Creating directory /sample-bootstrap/parts
buildout: Creating directory /sample-bootstrap/eggs
buildout: Creating directory /sample-bootstrap/develop-eggs
zc.buildout.easy_install: Generated script /sample-bootstrap/bin/buildout.
>>> print system(os.path.join('bin', 'buildout')),
buildout: Unused options for buildout: 'scripts' 'eggs'
"""
def removing_eggs_from_develop_section_causes_egg_link_to_be_removed():
'''
>>> cd(sample_buildout)
......
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