diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-12-14 14:13:18 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-12-14 14:13:18 +0000 |
commit | 96134532ec29f0e91af302b4e98936db54dddbef (patch) | |
tree | fd0be1a4a4ca72d39edf22ebc0c065e8fb3f2722 /tools/check/check_python_xml | |
parent | 265f7f57f6a8c4b670232218a147511312a41932 (diff) | |
download | xen-96134532ec29f0e91af302b4e98936db54dddbef.tar.gz xen-96134532ec29f0e91af302b4e98936db54dddbef.tar.bz2 xen-96134532ec29f0e91af302b4e98936db54dddbef.zip |
Add another package check (python-xml).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'tools/check/check_python_xml')
-rwxr-xr-x | tools/check/check_python_xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/check/check_python_xml b/tools/check/check_python_xml new file mode 100755 index 0000000000..95174f4688 --- /dev/null +++ b/tools/check/check_python_xml @@ -0,0 +1,16 @@ +#!/bin/bash +# CHECK-INSTALL + +function error { + echo + echo " *** Check for python-xml package FAILED" + exit 1 +} + +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) +' || error |