[Python-checkins] r65953 - sandbox/branches/setuptools-0.6/setuptools/package_index.py

phillip.eby python-checkins at python.org
Thu Aug 21 21:10:16 CEST 2008


Author: phillip.eby
Date: Thu Aug 21 21:10:15 2008
New Revision: 65953

Log:
Fix for http://bugs.python.org/setuptools/issue29 (backport from trunk)


Modified:
   sandbox/branches/setuptools-0.6/setuptools/package_index.py

Modified: sandbox/branches/setuptools-0.6/setuptools/package_index.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/package_index.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/package_index.py	Thu Aug 21 21:10:15 2008
@@ -629,7 +629,7 @@
         for line in file:
             if line.strip():
                 # Check for a subversion index page
-                if re.search(r'<title>Revision \d+:', line):
+                if re.search(r'<title>([^- ]+ - )?Revision \d+:', line):
                     # it's a subversion index page:
                     file.close()
                     os.unlink(filename)


More information about the Python-checkins mailing list