Commit 02625452 authored by Andreas Jung's avatar Andreas Jung

preserve packages with upper-case letters

parent 735961b6
...@@ -7,8 +7,10 @@ in combination with easy_install -i <some_url> ...@@ -7,8 +7,10 @@ in combination with easy_install -i <some_url>
import os import os
import sys import sys
from xmlrpclib import Server 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): def write_index(package, version):
print >>sys.stderr, 'Package %s==%s' % (package, version) print >>sys.stderr, 'Package %s==%s' % (package, version)
...@@ -36,5 +38,12 @@ dirname = sys.argv[1] ...@@ -36,5 +38,12 @@ dirname = sys.argv[1]
write_index('Zope2', '2.12.0a3') write_index('Zope2', '2.12.0a3')
for package in CP.options('versions'): 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) version = CP.get('versions', package)
write_index(package, version) write_index(package, version)
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