Fix crash when compressing mathjax on CI servers

This commit is contained in:
Kovid Goyal 2018-12-13 18:48:23 +05:30
parent b82d86bcfb
commit f6ef5f3cf7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: