Signed-off-by: Ray Spear <[email protected]>
---
contrib/install-autotest-server.sh | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/contrib/install-autotest-server.sh
b/contrib/install-autotest-server.sh
index 97ce829..4ea5dc5 100755
--- a/contrib/install-autotest-server.sh
+++ b/contrib/install-autotest-server.sh
@@ -332,10 +332,16 @@ fi
}
patch_python27_bug() {
-# Patch up a python 2.7 problem
-if [ "$(grep '^CFUNCTYPE(c_int)(lambda: None)'
/usr/lib64/python2.7/ctypes/__init__.py)" != "" ]
+#
+# We may not be on python 2.7
+#
+if [ -d /usr/lib64/python2.7 ]
then
- /usr/local/bin/substitute 'CFUNCTYPE(c_int)(lambda: None)' '#
CFUNCTYPE(c_int)(lambda: None)' /usr/lib64/python2.7/ctypes/__init__.py
+ # Patch up a python 2.7 problem
+ if [ "$(grep '^CFUNCTYPE(c_int)(lambda: None)'
/usr/lib64/python2.7/ctypes/__init__.py)" != "" ]
+ then
+ /usr/local/bin/substitute 'CFUNCTYPE(c_int)(lambda: None)' '#
CFUNCTYPE(c_int)(lambda: None)' /usr/lib64/python2.7/ctypes/__init__.py
+ fi
fi
}
--
1.7.7.6
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest