summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-30 14:47:01 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-30 14:47:01 +0100
commit05e8f8ae9bc9764e9d1510ae4d3a0d87e9b28e12 (patch)
treebd56efdb0da5a7ce3dd1564546edebdc8ef901df
parent28becd1f549b3dcc1a5c1392954dcb360de51f45 (diff)
Fix host bit width detection.
-rwxr-xr-xcdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdist b/cdist
index a4cbd8e..cb02a27 100755
--- a/cdist
+++ b/cdist
@@ -546,7 +546,7 @@ def target_factory(s, debug, work):
try:
f = open('/etc/fedora-release', 'r')
l = f.readline().strip().split()
- if command_and_read('uname -m') == 'x86_64':
+ if command_and_read('uname -m').read().strip() == 'x86_64':
bits = 64
else:
bits = 32