WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools/check: We do need a default for ${P

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/check: We do need a default for ${PYTHON} as called from
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jul 2009 04:45:21 -0700
Delivery-date: Mon, 20 Jul 2009 04:45:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=