Commit 01ff45c5 authored by Jim Fulton's avatar Jim Fulton

Fixed a bug:

It wasn't possible to give options on the command line for sections
not defined in a configuration file.
parent bdaf3d47
...@@ -11,6 +11,15 @@ priorities include: ...@@ -11,6 +11,15 @@ priorities include:
Change History Change History
************** **************
1.0.0b23 (2007-03-??)
=====================
Bugs Fixed
----------
- It wasn't possible to give options on the command line for sections
not defined in a configuration file.
1.0.0b22 (2007-03-15) 1.0.0b22 (2007-03-15)
===================== =====================
......
...@@ -105,7 +105,7 @@ class Buildout(UserDict.DictMixin): ...@@ -105,7 +105,7 @@ class Buildout(UserDict.DictMixin):
for (section, option, value) in cloptions: for (section, option, value) in cloptions:
options = data.get(section) options = data.get(section)
if options is None: if options is None:
options = self[section] = {} options = data[section] = {}
options[option] = value options[option] = value
# The egg dire # The egg dire
......
...@@ -395,6 +395,24 @@ Now, finally, let's test _get_version: ...@@ -395,6 +395,24 @@ Now, finally, let's test _get_version:
""" """
def create_sections_on_command_line():
"""
>>> write('buildout.cfg',
... '''
... [buildout]
... parts =
... x = ${foo:bar}
... ''')
>>> print system(buildout + ' foo:bar=1 -vD'), # doctest: +ELLIPSIS
zc.buildout.easy_install: Installing ['zc.buildout', 'setuptools']
...
[foo]
bar = 1
...
"""
# Why? # Why?
## def error_for_undefined_install_parts(): ## def error_for_undefined_install_parts():
## """ ## """
......
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