[Checkins] SVN: zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py Generate the buildout.cfg with packages alphabetically sorted.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Oct 5 21:02:28 EDT 2007


Log message for revision 80678:
  Generate the buildout.cfg with packages alphabetically sorted.
  

Changed:
  U   zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py

-=-
Modified: zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py
===================================================================
--- zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py	2007-10-06 00:35:50 UTC (rev 80677)
+++ zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py	2007-10-06 01:02:28 UTC (rev 80678)
@@ -174,7 +174,9 @@
     config = ConfigParser.RawConfigParser()
     config.read(cpath)
     packages = []
-    for section in config.sections():
+    sections = config.sections()
+    sections.sort()
+    for section in sections:
         packages.append((
             section,
             config.get(section, 'versions').split()[-1],



More information about the Checkins mailing list