From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] yet another package check Date: Thu, 14 Dec 2006 15:23:21 +0000 Message-ID: <45817A79.76E4.0078.0@novell.com> References: <4581688F.76E4.0078.0@novell.com> <200612141522.15699.Christoph.Egger@amd.com> <45815F50.6030101@inria.fr> <200612141532.31986.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200612141532.31986.Christoph.Egger@amd.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Christoph Egger List-Id: xen-devel@lists.xenproject.org >This is the adaption for -unstable: > >diff -r 360eb996fa38 tools/check/check_python >--- a/tools/check/check_python Wed Dec 13 16:13:26 2006 +0000 >+++ b/tools/check/check_python Thu Dec 14 15:31:18 2006 +0100 >@@ -3,7 +3,7 @@ > > RC=0 > >-python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || RC=1 >+python -c 'import sys; sys.exit(sys.version_info[0] < 2 or >sys.version_info[1] < 2);' || RC=1 > > if test ${RC} -ne 0; then > echo What's wrong with using functions in shell scripts? Jan