Fix a copy/past bug in _compressFile (bad filename)

This commit is contained in:
Grégory Soutadé 2014-12-15 22:20:47 +01:00
parent 4f4e464843
commit 4d4fcf4075
1 changed files with 1 additions and 2 deletions

View File

@ -447,14 +447,13 @@ class IWLA(object):
gz_path = path + '.gz'
#print 'Compress %s => %s' % (path, gz_path)
if not os.path.exists(gz_path) or\
os.stat(filename).st_mtime > build_time:
os.stat(path).st_mtime > build_time:
with open(path, 'rb') as f_in:
with gzip.open(gz_path, 'wb') as f_out:
f_out.write(f_in.read())
def _compressFiles(self, build_time, root):
if not conf.compress_output_files: return
print root
for rootdir, subdirs, files in os.walk(root, followlinks=True):
for f in files:
for ext in conf.compress_output_files: