[Python-checkins] r65952 - sandbox/trunk/setuptools/setuptools/package_index.py

phillip.eby python-checkins at python.org
Thu Aug 21 21:09:29 CEST 2008


Author: phillip.eby
Date: Thu Aug 21 21:09:29 2008
New Revision: 65952

Log:
Fix for http://bugs.python.org/setuptools/issue29


Modified:
   sandbox/trunk/setuptools/setuptools/package_index.py

Modified: sandbox/trunk/setuptools/setuptools/package_index.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/package_index.py	(original)
+++ sandbox/trunk/setuptools/setuptools/package_index.py	Thu Aug 21 21:09:29 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