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] Tidy up.

# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 4d2ae322ef0294df2e3361179b48cb4c339a555f
# Parent  cd89771ba5508e9d1d8c76448c11dc9809e1e70d
Tidy up.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/check/check_python_xml |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diff -r cd89771ba550 -r 4d2ae322ef02 tools/check/check_python_xml
--- a/tools/check/check_python_xml      Thu Dec 14 16:27:10 2006 +0000
+++ b/tools/check/check_python_xml      Thu Dec 14 17:25:38 2006 +0000
@@ -1,19 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 # CHECK-INSTALL
 
-RC=0
-
-python -c '
-import os.path, sys
-for p in sys.path:
-       if os.path.exists(p + "/xml/dom/minidom.py"):
-               sys.exit(0)
-sys.exit(1)
-' || RC=1
-
-if test ${RC} -ne 0; then
+python -c 'import xml.dom.minidom' 2>/dev/null || {
     echo
     echo "  *** Check for python-xml package FAILED"
-fi
-
-exit ${RC}
+    exit 1
+}

_______________________________________________
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] Tidy up., Xen patchbot-unstable <=