Merge branch 'dev' of soutade.fr:iwla into dev
This commit is contained in:
commit
16cf4471dc
2
iwla.py
2
iwla.py
|
@ -548,7 +548,7 @@ class IWLA(object):
|
||||||
self.logger.debug('Compress %s => %s' % (path, gz_path))
|
self.logger.debug('Compress %s => %s' % (path, gz_path))
|
||||||
|
|
||||||
if not os.path.exists(gz_path) or\
|
if not os.path.exists(gz_path) or\
|
||||||
os.stat(path).st_mtime > build_time:
|
os.stat(path).st_mtime >= build_time:
|
||||||
with open(path, 'rb') as f_in, gzip.open(gz_path, 'wb') as f_out:
|
with open(path, 'rb') as f_in, gzip.open(gz_path, 'wb') as f_out:
|
||||||
f_out.write(f_in.read())
|
f_out.write(f_in.read())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user