Linux installer: Detect ARM 64bit as well as 32bit

This commit is contained in:
Kovid Goyal 2020-06-04 19:40:32 +05:30
parent e0e0714426
commit 1c66024316
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 10 additions and 10 deletions

View File

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

View File

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