aboutsummaryrefslogtreecommitdiff
path: root/tools/file_packager.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-06-19 18:47:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-06-19 18:47:17 -0700
commit039db2d816647c0d80b8b262ff39b8d0d45faf7f (patch)
tree04142fa40809e11fedbb8fb56f6faf971cec254b /tools/file_packager.py
parent06680f3b14fb2342e277579cc64b23bad7a9cba1 (diff)
crunch fix
Diffstat (limited to 'tools/file_packager.py')
-rw-r--r--tools/file_packager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py
index a59c00fa..a936ffd3 100644
--- a/tools/file_packager.py
+++ b/tools/file_packager.py
@@ -161,6 +161,7 @@ if crunch:
if file_['name'].endswith(CRUNCH_INPUT_SUFFIX):
# Do not crunch if crunched version exists and is more recent than dds source
crunch_name = unsuffixed(file_['name']) + CRUNCH_OUTPUT_SUFFIX
+ file_['localname'] = crunch_name
try:
crunch_time = os.stat(crunch_name).st_mtime
dds_time = os.stat(file_['name']).st_mtime
@@ -187,7 +188,6 @@ if crunch:
c.write(open(file_['name'], 'rb').read()[:DDS_HEADER_SIZE])
c.write(crunched)
c.close()
- file_['localname'] = crunch_name
# Set up folders
partial_dirs = []
@@ -210,6 +210,7 @@ if has_preloaded:
file_['data_start'] = start
curr = open(file_['localname'], 'rb').read()
file_['data_end'] = start + len(curr)
+ print >> sys.stderr, 'bundling', file_['name'], file_['localname'], file_['data_start'], file_['data_end']
start += len(curr)
data.write(curr)
data.close()