[TOOLS] A couple of check-script cleanups.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-12-14 15:12:38 +00:00
1 parent e93c545c97
commit 23496e5afb
2 files changed
+13 -7

No files matched your search

+9 -6
View File
@@ -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}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.