mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 07:20:44 -04:00
More robust tarball compression type detection in the linux installer
This commit is contained in:
parent
8b8aaf0e45
commit
4e04a1a104
@ -593,7 +593,7 @@ def get_https_resource_securely(url, timeout=60, max_redirects=5, ssl_version=No
|
|||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
def extract_tarball(raw, destdir):
|
def extract_tarball(raw, destdir):
|
||||||
c = 'j' if calibre_version.startswith('1.') else 'J'
|
c = 'j' if raw.startswith(b'BZh') else 'J'
|
||||||
prints('Extracting application files...')
|
prints('Extracting application files...')
|
||||||
with open('/dev/null', 'w') as null:
|
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', 'x%sof' % c, '-', '-C', destdir], stdout=null, stdin=subprocess.PIPE, close_fds=True,
|
||||||
|
@ -12,6 +12,8 @@ __copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
|||||||
|
|
||||||
# QT5XX: Modify notes about glibc 2.13, os x 10.7 and new Qt/PyQt linux dependencies on the server
|
# QT5XX: Modify notes about glibc 2.13, os x 10.7 and new Qt/PyQt linux dependencies on the server
|
||||||
|
|
||||||
|
# Get rid of tarball compression type detection in linux-installer.py
|
||||||
|
|
||||||
# QT5XX: Delete this file after migration is completed
|
# QT5XX: Delete this file after migration is completed
|
||||||
|
|
||||||
import os, re
|
import os, re
|
||||||
|
Loading…
x
Reference in New Issue
Block a user