From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ewan Mellor Subject: Re: [PATCH] yet another package check (take 2) Date: Thu, 14 Dec 2006 17:04:31 +0000 Message-ID: <20061214170431.GA3748@leeni.uk.xensource.com> References: <45818894.76E4.0078.0@novell.com> <20061214164716.GA2717@leeni.uk.xensource.com> <45819108.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <45819108.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Christoph Egger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, Dec 14, 2006 at 04:59:36PM +0000, Jan Beulich wrote: > >How about > > > >if ! python -c 'import xml.dom.minidom' 2>/dev/null ; then > > echo > > echo " *** Check for python development environment FAILED" > > exit 1 > >else > > exit 0 > >fi > > Why not - I didn't invent the other method, I just cloned what we had for > python-devel (which in turn I created based on suggestions from you and > others). I'm not a python person at all, I just want understandable error > messages when dependencies are missing instead of cryptic ones. I'll put something like that in then. I think SuSE are the only ones who split minidom.py out from the main Python package, which is why you're having the problem ;-) Ewan.