mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[TOOLS] A couple of check-script cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
e93c545c97
commit
23496e5afb
2 files changed
+13
-7
No files matched your search
@@ -1,11 +1,7 @@
|
||||
#!/bin/bash
|
||||
# CHECK-INSTALL
|
||||
|
||||
function error {
|
||||
echo
|
||||
echo " *** Check for python-xml package FAILED"
|
||||
exit 1
|
||||
}
|
||||
RC=0
|
||||
|
||||
python -c '
|
||||
import os.path, sys
|
||||
@@ -13,4 +9,11 @@ for p in sys.path:
|
||||
if os.path.exists(p + "/xml/dom/minidom.py"):
|
||||
sys.exit(0)
|
||||
sys.exit(1)
|
||||
' || error
|
||||
' || RC=1
|
||||
|
||||
if test ${RC} -ne 0; then
|
||||
echo
|
||||
echo " *** Check for python-xml package FAILED"
|
||||
fi
|
||||
|
||||
exit ${RC}
|
||||