mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:43:44 +02:00
Linux installer: A nicer error message if the user tries to run the installer on an ARM machine
This commit is contained in:
parent
14c09400c6
commit
631ca6393e
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue