Linux installer: A nicer error message if the user tries to run the installer on an ARM machine

This commit is contained in:
Kovid Goyal 2017-12-04 12:32:36 +05:30
parent 14c09400c6
commit 631ca6393e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -723,6 +723,12 @@ def check_umask():
def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None, ignore_umask=False):
if not ignore_umask and not isolated:
check_umask()
machine = os.uname()[4]
if machine and machine.lower().startswith('arm'):
raise SystemExit(
'You are running on an ARM system. The calibre binaries are only'
' available for x86 systems. You will have to compile from'
' source.')
run_installer(install_dir, isolated, bin_dir, share_dir)