mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-18 02:34:28 +02:00
Remove no longer needed branches from the linux installer
This commit is contained in:
parent
82cd471ffc
commit
2d768e9f4e
2 changed files with 2 additions and 6 deletions
|
|
@ -290,8 +290,7 @@ def do_download(dest):
|
|||
prints('Downloaded %s bytes'%os.path.getsize(dest))
|
||||
|
||||
def download_tarball():
|
||||
ext = 'tar.bz2' if calibre_version.startswith('1.') else 'txz'
|
||||
fname = 'calibre-%s-i686.%s'%(calibre_version, ext)
|
||||
fname = 'calibre-%s-i686.%s'%(calibre_version, 'txz')
|
||||
if is64bit:
|
||||
fname = fname.replace('i686', 'x86_64')
|
||||
tdir = tempfile.gettempdir()
|
||||
|
|
@ -593,10 +592,9 @@ def get_https_resource_securely(url, timeout=60, max_redirects=5, ssl_version=No
|
|||
# }}}
|
||||
|
||||
def extract_tarball(raw, destdir):
|
||||
c = 'j' if raw.startswith(b'BZh') else 'J'
|
||||
prints('Extracting application files...')
|
||||
with open('/dev/null', 'w') as null:
|
||||
p = subprocess.Popen(['tar', 'x%sof' % c, '-', '-C', destdir], stdout=null, stdin=subprocess.PIPE, close_fds=True,
|
||||
p = subprocess.Popen(['tar', 'xJof', '-', '-C', destdir], stdout=null, stdin=subprocess.PIPE, close_fds=True,
|
||||
preexec_fn=lambda:
|
||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL))
|
||||
p.stdin.write(raw)
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
# QT5XX: Get rid of the plugin porting stat collection in plugins_mirror.py
|
||||
|
||||
# QT5XX: Get rid of tarball compression type detection in linux-installer.py
|
||||
|
||||
# QT5XX: Delete this file after migration is completed
|
||||
|
||||
import os, re
|
||||
|
|
|
|||
Loading…
Reference in a new issue