[Python-checkins] r65223 - sandbox/branches/setuptools-0.6/setuptools/command/egg_info.py

phillip.eby python-checkins at python.org
Thu Jul 24 23:17:31 CEST 2008


Author: phillip.eby
Date: Thu Jul 24 23:17:31 2008
New Revision: 65223

Log:
Backport egg_info SVN fix from trunk


Modified:
   sandbox/branches/setuptools-0.6/setuptools/command/egg_info.py

Modified: sandbox/branches/setuptools-0.6/setuptools/command/egg_info.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/command/egg_info.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/command/egg_info.py	Thu Jul 24 23:17:31 2008
@@ -217,9 +217,9 @@
             data = f.read()
             f.close()
 
-            if data.startswith('8'):
+            if data.startswith('9') or data.startswith('8'):
                 data = map(str.splitlines,data.split('\n\x0c\n'))
-                del data[0][0]  # get rid of the '8'
+                del data[0][0]  # get rid of the '8' or '9'
                 dirurl = data[0][3]
                 localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]+[0])
             elif data.startswith('<?xml'):


More information about the Python-checkins mailing list