[Checkins] SVN: zc.buildout/trunk/ Fixed a bug:
Jim Fulton
jim at zope.com
Sun Mar 18 14:48:42 EDT 2007
Log message for revision 73325:
Fixed a bug:
It wasn't possible to give options on the command line for sections
not defined in a configuration file.
Changed:
U zc.buildout/trunk/CHANGES.txt
U zc.buildout/trunk/src/zc/buildout/buildout.py
U zc.buildout/trunk/src/zc/buildout/tests.py
-=-
Modified: zc.buildout/trunk/CHANGES.txt
===================================================================
--- zc.buildout/trunk/CHANGES.txt 2007-03-18 16:47:50 UTC (rev 73324)
+++ zc.buildout/trunk/CHANGES.txt 2007-03-18 18:48:41 UTC (rev 73325)
@@ -11,6 +11,15 @@
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)
=====================
Modified: zc.buildout/trunk/src/zc/buildout/buildout.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/buildout.py 2007-03-18 16:47:50 UTC (rev 73324)
+++ zc.buildout/trunk/src/zc/buildout/buildout.py 2007-03-18 18:48:41 UTC (rev 73325)
@@ -105,7 +105,7 @@
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
Modified: zc.buildout/trunk/src/zc/buildout/tests.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/tests.py 2007-03-18 16:47:50 UTC (rev 73324)
+++ zc.buildout/trunk/src/zc/buildout/tests.py 2007-03-18 18:48:41 UTC (rev 73325)
@@ -395,6 +395,24 @@
"""
+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():
## """
More information about the Checkins
mailing list