mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
minor patch optimization
This commit is contained in:
parent
5a223ebbc1
commit
f82196dfc9
@ -391,14 +391,20 @@ class Packager:
|
|||||||
|
|
||||||
self.multifile = Multifile()
|
self.multifile = Multifile()
|
||||||
|
|
||||||
if self.p3dApplication:
|
|
||||||
self.multifile.setHeaderPrefix('#! /usr/bin/env panda3d\n')
|
|
||||||
|
|
||||||
# Write the multifile to a temporary filename until we
|
# Write the multifile to a temporary filename until we
|
||||||
# know enough to determine the output filename.
|
# know enough to determine the output filename.
|
||||||
multifileFilename = Filename.temporary('', self.packageName + '.', '.mf')
|
multifileFilename = Filename.temporary('', self.packageName + '.', '.mf')
|
||||||
self.multifile.openReadWrite(multifileFilename)
|
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.extracts = []
|
||||||
self.components = []
|
self.components = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user