[Zope-Checkins] SVN: Zope/trunk/inst/generate_index.py preserve packages with upper-case letters
Andreas Jung
andreas at andreas-jung.com
Wed Apr 22 12:45:36 EDT 2009
Log message for revision 99385:
preserve packages with upper-case letters
Changed:
U Zope/trunk/inst/generate_index.py
-=-
Modified: Zope/trunk/inst/generate_index.py
===================================================================
--- Zope/trunk/inst/generate_index.py 2009-04-22 16:40:27 UTC (rev 99384)
+++ Zope/trunk/inst/generate_index.py 2009-04-22 16:45:35 UTC (rev 99385)
@@ -7,8 +7,10 @@
import os
import sys
from xmlrpclib import Server
-from ConfigParser import ConfigParser
+from ConfigParser import RawConfigParser as ConfigParser
+# packages containing upper-case letters
+upper_names = ('ClientForm', 'RestrictedPython', 'ZConfig', 'ZODB3')
def write_index(package, version):
print >>sys.stderr, 'Package %s==%s' % (package, version)
@@ -36,5 +38,12 @@
write_index('Zope2', '2.12.0a3')
for package in CP.options('versions'):
+
+ # options() returns all options in lowercase but
+ # we must preserve the case for package names
+ for name in upper_names:
+ if name.lower() == package:
+ package = name
+ break
version = CP.get('versions', package)
write_index(package, version)
More information about the Zope-Checkins
mailing list