[Checkins] SVN: zc.metarecipe/trunk/src/zc/metarecipe/ Fixed: When using the meta-recipe parse method, the order that
jim
cvs-admin at zope.org
Mon Sep 24 15:59:00 UTC 2012
Log message for revision 127877:
Fixed: When using the meta-recipe parse method, the order that
resulting sections were added was not=deterministic, due to the
way ConfigParser works. Not sections are added to a buildout
in sortd order, by section name.
Changed:
U zc.metarecipe/trunk/src/zc/metarecipe/README.txt
U zc.metarecipe/trunk/src/zc/metarecipe/__init__.py
-=-
Modified: zc.metarecipe/trunk/src/zc/metarecipe/README.txt
===================================================================
--- zc.metarecipe/trunk/src/zc/metarecipe/README.txt 2012-09-23 16:14:55 UTC (rev 127876)
+++ zc.metarecipe/trunk/src/zc/metarecipe/README.txt 2012-09-24 15:58:56 UTC (rev 127877)
@@ -203,16 +203,16 @@
path ${:path}
</filestorage>
</zlibstorage>
+ [ctl]
+ chkconfig = 345 99 10
+ deployment = deployment
+ parts = main
+ recipe = zc.recipe.rhrc
[pack]
command = ${buildout:bin-directory}/zeopack -d3 -t00 ${main:address}
deployment = deployment
recipe = zc.recipe.deployment:crontab
times = 1 2 * * 6
- [ctl]
- chkconfig = 345 99 10
- deployment = deployment
- parts = main
- recipe = zc.recipe.rhrc
When we call our recipe, it will add sections to the test buildout and
these are simply printed as added, so we can verify that the correct
@@ -223,6 +223,14 @@
Changes
=======
+0.1.1 (2012-09-24)
+------------------
+
+Fixed: When using the meta-recipe parse method, the order that
+ resulting sections were added was not=deterministic, due to the
+ way ConfigParser works. Not sections are added to a buildout
+ in sortd order, by section name.
+
0.1.0 (2012-05-31)
------------------
Modified: zc.metarecipe/trunk/src/zc/metarecipe/__init__.py
===================================================================
--- zc.metarecipe/trunk/src/zc/metarecipe/__init__.py 2012-09-23 16:14:55 UTC (rev 127876)
+++ zc.metarecipe/trunk/src/zc/metarecipe/__init__.py 2012-09-24 15:58:56 UTC (rev 127877)
@@ -20,5 +20,5 @@
parser = ConfigParser.RawConfigParser()
parser.readfp(cStringIO.StringIO(textwrap.dedent(data)))
- for section in parser.sections():
+ for section in sorted(parser.sections()):
self[section] = dict(parser.items(section))
More information about the checkins
mailing list