From b3490bf8a4bc6677a42738279c7ffbc8b13c84c9 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Thu, 15 Nov 2018 10:02:58 -0500 Subject: [PATCH] Add a test for rpm-sign, which is required to successfullly build the deps package --- builddep.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builddep.sh b/builddep.sh index 2d7b221c1..4a3212917 100755 --- a/builddep.sh +++ b/builddep.sh @@ -49,6 +49,12 @@ if [ ! -d $GSA ]; then exit 1 fi +REQPKG="rpm-sign" +if [ `rpm -q $REQPKG >> /dev/null; echo $?` != 0 ]; then + echo "ERROR: $REQPKG is required to successfully create the xcat-deps package. Install and rerun." + exit 1 +fi + # set grep to quiet by default GREP="grep -q" if [ "$VERBOSE" = "1" -o "$VERBOSE" = "yes" ]; then