Commit fd46edcd authored by Martijn Pieters's avatar Martijn Pieters
parent 2cb3f198
...@@ -1286,6 +1286,12 @@ This is illustrated below; first we define a base configuration. ...@@ -1286,6 +1286,12 @@ This is illustrated below; first we define a base configuration.
... recipe = ... recipe =
... option = c1 c2 ... option = c1 c2
... ...
... [part4]
... recipe =
... option = d2
... d3
... d5
...
... """) ... """)
Extending this configuration, we can "adjust" the values set in the Extending this configuration, we can "adjust" the values set in the
...@@ -1308,8 +1314,14 @@ base configuration file. ...@@ -1308,8 +1314,14 @@ base configuration file.
... [part3] ... [part3]
... option+=c3 c4 c5 ... option+=c3 c4 c5
... ...
... # normal assignment ... # combining both adding and removing
... [part4] ... [part4]
... option += d1
... d4
... option -= d5
...
... # normal assignment
... [part5]
... option = h1 h2 ... option = h1 h2
... ...
... """) ... """)
...@@ -1379,7 +1391,7 @@ Verify option values. ...@@ -1379,7 +1391,7 @@ Verify option values.
... """) ... """)
>>> print_(system(os.path.join('bin', 'buildout')), end='') >>> print_(system(os.path.join('bin', 'buildout')), end='')
['a1 a2/na3 a4/na5', 'b1 b2 b3 b4', 'c1 c2/nc3 c4 c5', 'h1 h2'] ['a1 a2/na3 a4/na5', 'b1 b2 b3 b4', 'c1 c2/nc3 c4 c5', 'd2/nd3/nd1/nd4', 'h1 h2'
Develop: '/sample-buildout/demo' Develop: '/sample-buildout/demo'
Annotated sections output shows which files are responsible for which Annotated sections output shows which files are responsible for which
...@@ -1418,7 +1430,17 @@ operations. ...@@ -1418,7 +1430,17 @@ operations.
recipe= recipe=
/sample-buildout/base.cfg /sample-buildout/base.cfg
<BLANKLINE> <BLANKLINE>
[part4] option= d2
d3
d1
d4
/sample-buildout/base.cfg
+= /sample-buildout/extension1.cfg
-= /sample-buildout/extension1.cfg
recipe=
/sample-buildout/base.cfg
<BLANKLINE>
[part5]
option= h1 h2 option= h1 h2
/sample-buildout/extension1.cfg /sample-buildout/extension1.cfg
[versions] [versions]
......
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