Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
02625452
Commit
02625452
authored
Apr 22, 2009
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preserve packages with upper-case letters
parent
735961b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
inst/generate_index.py
inst/generate_index.py
+10
-1
No files found.
inst/generate_index.py
View file @
02625452
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment