[Python-checkins] python/dist/src/Lib/distutils/command
bdist_wininst.py, 1.50, 1.51
theller at users.sourceforge.net
theller at users.sourceforge.net
Mon Jul 19 11:45:49 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28757
Modified Files:
bdist_wininst.py
Log Message:
The binary layout of cfgdata has changed, so the magic number has to
change as well. Add a comment explaining this.
Index: bdist_wininst.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_wininst.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** bdist_wininst.py 18 Jul 2004 06:14:42 -0000 1.50
--- bdist_wininst.py 19 Jul 2004 09:45:46 -0000 1.51
***************
*** 254,259 ****
cfgdata = cfgdata + "\0"
file.write(cfgdata)
header = struct.pack("<iii",
! 0x1234567A, # tag
len(cfgdata), # length
bitmaplen, # number of bytes in bitmap
--- 254,265 ----
cfgdata = cfgdata + "\0"
file.write(cfgdata)
+
+ # The 'magic number' 0x1234567B is used to make sure that the
+ # binary layout of 'cfgdata' is what the wininst.exe binary
+ # expects. If the layout changes, increment that number, make
+ # the corresponding changes to the wininst.exe sources, and
+ # recompile them.
header = struct.pack("<iii",
! 0x1234567B, # tag
len(cfgdata), # length
bitmaplen, # number of bytes in bitmap
More information about the Python-checkins
mailing list