summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-05-08 13:27:21 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-05-08 13:27:21 +0100
commitfbfcdcedf7b7e69f3d340b92785b3b4355e3f543 (patch)
tree40c2351f81c89d83b19d1bcef2403c7ffb76dfa1
parent81cbbef81e44cc4bd1f3440c40a524667be698c3 (diff)
downloaddefinitions-fbfcdcedf7b7e69f3d340b92785b3b4355e3f543.tar.gz
Fix recognition of x86-32
Reported-by: Richard Maw
-rwxr-xr-xwriteexts.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/writeexts.py b/writeexts.py
index 23b876ae..6c28f7fb 100755
--- a/writeexts.py
+++ b/writeexts.py
@@ -223,9 +223,13 @@ class WriteExtension(cliapp.Application):
'''
+ def is_x86(arch):
+ return (arch == 'x86_64' or
+ (arch.startswith('i') and arch.endswith('86')))
+
value = os.environ.get('BOOTLOADER', 'auto')
if value == 'auto':
- if os.uname()[-1] in ['x86_32', 'x86_64']:
+ if ix_x86(os.uname()[-1]):
value = 'yes'
else:
value = 'no'