mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 07:36:12 +00:00
Standardize on network format for .pyz archives. This is useful for Mac builds (PPC vs Intel).
Thanks to Hans-Peter Jansen for the patch. git-svn-id: http://svn.pyinstaller.org/trunk@692 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
+2
-2
@@ -121,7 +121,7 @@ class Archive:
|
||||
Default: The TOC is a marshal-able string.
|
||||
"""
|
||||
self.lib.seek(self.start + self.TOCPOS)
|
||||
(offset,) = struct.unpack('=i', self.lib.read(4))
|
||||
(offset,) = struct.unpack('!i', self.lib.read(4))
|
||||
self.lib.seek(self.start + offset)
|
||||
self.toc = marshal.load(self.lib)
|
||||
|
||||
@@ -273,7 +273,7 @@ class Archive:
|
||||
self.lib.seek(self.start)
|
||||
self.lib.write(self.MAGIC)
|
||||
self.lib.write(self.pymagic)
|
||||
self.lib.write(struct.pack('=i', tocpos))
|
||||
self.lib.write(struct.pack('!i', tocpos))
|
||||
|
||||
class DummyZlib:
|
||||
def decompress(self, data):
|
||||
|
||||
Reference in New Issue
Block a user