]> granicus.if.org Git - python/commitdiff
The binary layout of cfgdata has changed, so the magic number has to
authorThomas Heller <theller@ctypes.org>
Mon, 19 Jul 2004 09:45:46 +0000 (09:45 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 19 Jul 2004 09:45:46 +0000 (09:45 +0000)
change as well.  Add a comment explaining this.

Lib/distutils/command/bdist_wininst.py

index d91c08936ca43e3a3a9cc18f58c530f306c6332c..79c95ae2aed4b38b0bbdfda7bd2bb382bd8235b8 100644 (file)
@@ -253,8 +253,14 @@ class bdist_wininst (Command):
             # empty pre-install script
             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",
-                             0x1234567A,       # tag
+                             0x1234567B,       # tag
                              len(cfgdata),     # length
                              bitmaplen,        # number of bytes in bitmap
                              )