Changeset 301:46cd38d5e87d in livinglogic.python.www

Show
Ignore:
Timestamp:
12/23/04 18:57:26 (15 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix download list for Windows packages that don't include a version number.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • site/Python_xmlns.py

    r300 r301  
    880880            type = "Source" 
    881881        elif name.endswith(".exe"): 
    882             version = name[name.rfind("py")+2:-4] 
    883             type = "Windows installer (Python %s)" % version 
     882            type = "Windows installer" 
     883            pos = name.rfind("py") 
     884            if pos >= 0: 
     885                version = name[pos+2:-4] 
     886                type += " (Python %s)" % version 
    884887        elif name.endswith(".src.rpm"): 
    885888            type = "Source RPM"