|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] tools/check: We do need a default for ${P
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1247668385 -3600
# Node ID 10d806ca5952e6f4ff098b7c1d74acf225a2244e
# Parent bc80ccb79c5beb4f02f725d2f9a51164e48eb90b
tools/check: We do need a default for ${PYTHON} as called from
install.sh with PYTHON possibly undefined in the environment.
So we make PYTHON=python the sensible default.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
tools/check/check_python | 4 ++++
tools/check/check_python_devel | 3 +++
tools/check/check_python_xml | 3 +++
3 files changed, 10 insertions(+)
diff -r bc80ccb79c5b -r 10d806ca5952 tools/check/check_python
--- a/tools/check/check_python Wed Jul 15 14:53:01 2009 +0100
+++ b/tools/check/check_python Wed Jul 15 15:33:05 2009 +0100
@@ -3,6 +3,10 @@
. ./funcs.sh
+if test -z ${PYTHON}; then
+ PYTHON=python
+fi
+
${PYTHON} -c '
import sys
sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
diff -r bc80ccb79c5b -r 10d806ca5952 tools/check/check_python_devel
--- a/tools/check/check_python_devel Wed Jul 15 14:53:01 2009 +0100
+++ b/tools/check/check_python_devel Wed Jul 15 15:33:05 2009 +0100
@@ -3,6 +3,9 @@
. ./funcs.sh
+if test -z ${PYTHON}; then
+ PYTHON=python
+fi
has_or_fail ${PYTHON}
${PYTHON} -c '
diff -r bc80ccb79c5b -r 10d806ca5952 tools/check/check_python_xml
--- a/tools/check/check_python_xml Wed Jul 15 14:53:01 2009 +0100
+++ b/tools/check/check_python_xml Wed Jul 15 15:33:05 2009 +0100
@@ -3,6 +3,9 @@
. ./funcs.sh
+if test -z ${PYTHON}; then
+ PYTHON=python
+fi
has_or_fail ${PYTHON}
${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] tools/check: We do need a default for ${PYTHON} as called from,
Xen patchbot-unstable <=
|
|
|
|
|