Commit d1a70f2e authored by jim's avatar jim

Fixed a bug:

It wasn't possible to give options on the command line for sections
not defined in a configuration file.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@73325 62d5b8a3-27da-0310-9561-8e5933582275
parent 430ce278
......@@ -11,6 +11,15 @@ priorities include:
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)
=====================
......
......@@ -105,7 +105,7 @@ class Buildout(UserDict.DictMixin):
for (section, option, value) in cloptions:
options = data.get(section)
if options is None:
options = self[section] = {}
options = data[section] = {}
options[option] = value
# The egg dire
......
......@@ -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?
## 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