Browse Source

setBinary()

David Rose 14 years ago
parent
commit
c62a81af02
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/p3d/Packager.py

+ 3 - 0
direct/src/p3d/Packager.py

@@ -2044,6 +2044,7 @@ class Packager:
             # First, we need to verify that it is in fact a
             # First, we need to verify that it is in fact a
             # universal binary.
             # universal binary.
             tfile = Filename.temporary('', 'p3d_')
             tfile = Filename.temporary('', 'p3d_')
+            tfile.setBinary()
             command = '/usr/bin/lipo -info "%s" >"%s"' % (
             command = '/usr/bin/lipo -info "%s" >"%s"' % (
                 file.filename.toOsSpecific(),
                 file.filename.toOsSpecific(),
                 tfile.toOsSpecific())
                 tfile.toOsSpecific())
@@ -2051,6 +2052,7 @@ class Packager:
             if exitStatus != 0:
             if exitStatus != 0:
                 self.notify.warning("Not an executable file: %s" % (file.filename))
                 self.notify.warning("Not an executable file: %s" % (file.filename))
                 # Just add it anyway.
                 # Just add it anyway.
+                file.filename.setBinary()
                 self.multifile.addSubfile(file.newName, file.filename, compressionLevel)
                 self.multifile.addSubfile(file.newName, file.filename, compressionLevel)
                 return True
                 return True
 
 
@@ -2067,6 +2069,7 @@ class Packager:
             if arches == [self.arch]:
             if arches == [self.arch]:
                 # The file only contains the one architecture that
                 # The file only contains the one architecture that
                 # we want anyway.
                 # we want anyway.
+                file.filename.setBinary()
                 self.multifile.addSubfile(file.newName, file.filename, compressionLevel)
                 self.multifile.addSubfile(file.newName, file.filename, compressionLevel)
                 return True
                 return True