ia64/xen-unstable

changeset 13034:4d2ae322ef02

Tidy up.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Dec 14 17:25:38 2006 +0000 (2006-12-14)
parents cd89771ba550
children 9f09cbe84629
files tools/check/check_python_xml
line diff
     1.1 --- a/tools/check/check_python_xml	Thu Dec 14 16:27:10 2006 +0000
     1.2 +++ b/tools/check/check_python_xml	Thu Dec 14 17:25:38 2006 +0000
     1.3 @@ -1,19 +1,8 @@
     1.4 -#!/bin/bash
     1.5 +#!/bin/sh
     1.6  # CHECK-INSTALL
     1.7  
     1.8 -RC=0
     1.9 -
    1.10 -python -c '
    1.11 -import os.path, sys
    1.12 -for p in sys.path:
    1.13 -	if os.path.exists(p + "/xml/dom/minidom.py"):
    1.14 -		sys.exit(0)
    1.15 -sys.exit(1)
    1.16 -' || RC=1
    1.17 -
    1.18 -if test ${RC} -ne 0; then
    1.19 +python -c 'import xml.dom.minidom' 2>/dev/null || {
    1.20      echo
    1.21      echo "  *** Check for python-xml package FAILED"
    1.22 -fi
    1.23 -
    1.24 -exit ${RC}
    1.25 +    exit 1
    1.26 +}