[Python-checkins] r51955 - sandbox/trunk/setuptools/setuptools/command/easy_install.py

phillip.eby python-checkins at python.org
Thu Sep 21 22:59:07 CEST 2006


Author: phillip.eby
Date: Thu Sep 21 22:59:07 2006
New Revision: 51955

Modified:
   sandbox/trunk/setuptools/setuptools/command/easy_install.py
Log:
Fix easy_install not recognizing win32.exe files that include a custom bitmap.


Modified: sandbox/trunk/setuptools/setuptools/command/easy_install.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/easy_install.py	(original)
+++ sandbox/trunk/setuptools/setuptools/command/easy_install.py	Thu Sep 21 22:59:07 2006
@@ -1249,7 +1249,7 @@
         if tag not in (0x1234567A, 0x1234567B):
             return None     # not a valid tag
 
-        f.seek(prepended-(12+cfglen+bmlen))
+        f.seek(prepended-(12+cfglen))
         cfg = ConfigParser.RawConfigParser({'version':'','target_version':''})
         try:
             cfg.readfp(StringIO.StringIO(f.read(cfglen).split(chr(0),1)[0]))


More information about the Python-checkins mailing list