Commit 4a08f3e1 authored by jim's avatar jim

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@103345 62d5b8a3-27da-0310-9561-8e5933582275
parent 5f7aab85
Change History Change History
************** **************
1.4.1 (2009-08-27)
==================
New Feature:
- Added a debug built-in recipe to make writing some tests easier.
Bugs fixed:
- (introduced in 1.4.0) option incrementing (-=) and decrementing (-=)
didn't work in the buildout section.
https://bugs.launchpad.net/zc.buildout/+bug/420463
1.4.0 (2009-08-26) 1.4.0 (2009-08-26)
================== ==================
......
...@@ -1372,6 +1372,7 @@ def _dists_sig(dists): ...@@ -1372,6 +1372,7 @@ def _dists_sig(dists):
return result return result
def _update_section(s1, s2): def _update_section(s1, s2):
s2 = s2.copy() # avoid mutating the second argument, which is unexpected
for k, v in s2.items(): for k, v in s2.items():
v2, note2 = v v2, note2 = v
if k.endswith('+'): if k.endswith('+'):
......
...@@ -2557,6 +2557,41 @@ def make_sure_versions_dont_cancel_extras(): ...@@ -2557,6 +2557,41 @@ def make_sure_versions_dont_cancel_extras():
['demo', 'demoneeded', 'extraversiondemo'] ['demo', 'demoneeded', 'extraversiondemo']
""" """
def increment_buildout_options():
r"""
>>> write('b1.cfg', '''
... [buildout]
... parts = p1
... x = 1
... y = a
... b
...
... [p1]
... recipe = zc.buildout:debug
... foo = ${buildout:x} ${buildout:y}
... ''')
>>> write('buildout.cfg', '''
... [buildout]
... extends = b1.cfg
... parts += p2
... x += 2
... y -= a
...
... [p2]
... <= p1
... ''')
>>> print system(buildout),
Installing p1.
foo='1\n2 b'
recipe='zc.buildout:debug'
Installing p2.
foo='1\n2 b'
recipe='zc.buildout:debug'
"""
###################################################################### ######################################################################
......
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