mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1833 (Error with the binary linux installer)
This commit is contained in:
parent
3dfbf94db3
commit
de77871333
@ -1,7 +1,7 @@
|
|||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
__appname__ = 'calibre'
|
__appname__ = 'calibre'
|
||||||
import re
|
import re, textwrap
|
||||||
|
|
||||||
DEPENDENCIES = [
|
DEPENDENCIES = [
|
||||||
#(Generic, version, gentoo, ubuntu, fedora)
|
#(Generic, version, gentoo, ubuntu, fedora)
|
||||||
@ -191,7 +191,7 @@ else:
|
|||||||
return 'linux.html', data, None
|
return 'linux.html', data, None
|
||||||
|
|
||||||
|
|
||||||
LINUX_INSTALLER = r'''
|
LINUX_INSTALLER = textwrap.dedent(r'''
|
||||||
import sys, os, shutil, tarfile, subprocess, tempfile, urllib2, re, stat
|
import sys, os, shutil, tarfile, subprocess, tempfile, urllib2, re, stat
|
||||||
|
|
||||||
MOBILEREAD='https://dev.mobileread.com/dist/kovid/calibre/'
|
MOBILEREAD='https://dev.mobileread.com/dist/kovid/calibre/'
|
||||||
@ -382,5 +382,5 @@ else:
|
|||||||
pi = os.path.join(destdir, 'calibre_postinstall')
|
pi = os.path.join(destdir, 'calibre_postinstall')
|
||||||
subprocess.call(pi, shell=True)
|
subprocess.call(pi, shell=True)
|
||||||
return 0
|
return 0
|
||||||
'''
|
''')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user