mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix crash when compressing mathjax on CI servers
This commit is contained in:
parent
b82d86bcfb
commit
f6ef5f3cf7
@ -71,7 +71,7 @@ class MathJax(Command):
|
|||||||
zf.comment = self.h.hexdigest()
|
zf.comment = self.h.hexdigest()
|
||||||
t.seek(0)
|
t.seek(0)
|
||||||
with open(self.j(self.RESOURCES, 'content-server', 'mathjax.zip.xz'), 'wb') as f:
|
with open(self.j(self.RESOURCES, 'content-server', 'mathjax.zip.xz'), 'wb') as f:
|
||||||
compress(t, f, level=1 if is_ci else 9)
|
compress(t, f, level=4 if is_ci else 9)
|
||||||
with open(self.j(self.RESOURCES, 'content-server', 'mathjax.version'), 'wb') as f:
|
with open(self.j(self.RESOURCES, 'content-server', 'mathjax.version'), 'wb') as f:
|
||||||
f.write(zf.comment)
|
f.write(zf.comment)
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user