Fix #1812891 [calibre-3.38.1 tries to download mathjax during build](https://bugs.launchpad.net/calibre/+bug/1812891) again

This commit is contained in:
Kovid Goyal 2019-02-01 13:38:48 +05:30
parent b1c9b2ba71
commit e0d5a021dd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -78,6 +78,7 @@ class MathJax(Command):
def run(self, opts): def run(self, opts):
if not opts.system_mathjax and self.already_present(): if not opts.system_mathjax and self.already_present():
self.info('MathJax already present in the resources directory, not downloading') self.info('MathJax already present in the resources directory, not downloading')
return
self.use_symlinks = opts.system_mathjax self.use_symlinks = opts.system_mathjax
self.h = sha1() self.h = sha1()
self.mathjax_files = {} self.mathjax_files = {}