mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
minor patch optimization
This commit is contained in:
parent
5a223ebbc1
commit
f82196dfc9
@ -391,14 +391,20 @@ class Packager:
|
||||
|
||||
self.multifile = Multifile()
|
||||
|
||||
if self.p3dApplication:
|
||||
self.multifile.setHeaderPrefix('#! /usr/bin/env panda3d\n')
|
||||
|
||||
# Write the multifile to a temporary filename until we
|
||||
# know enough to determine the output filename.
|
||||
multifileFilename = Filename.temporary('', self.packageName + '.', '.mf')
|
||||
self.multifile.openReadWrite(multifileFilename)
|
||||
|
||||
if self.p3dApplication:
|
||||
# p3d files should be tagged to make them executable.
|
||||
self.multifile.setHeaderPrefix('#! /usr/bin/env panda3d\n')
|
||||
else:
|
||||
# Package multifiles might be patched, and therefore
|
||||
# don't want to record an internal timestamp, which
|
||||
# would make patching less efficient.
|
||||
self.multifile.setRecordTimestamp(False)
|
||||
|
||||
self.extracts = []
|
||||
self.components = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user