From 25c19198f6dea3f3e1075e1b623d2bbd01e15a85 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 19 Aug 2017 20:57:41 -0500 Subject: [PATCH] packpack - relax the requirements for repoquery --- utils/packpack/startpackpack.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/utils/packpack/startpackpack.sh b/utils/packpack/startpackpack.sh index bb38a809c..0feb4b135 100755 --- a/utils/packpack/startpackpack.sh +++ b/utils/packpack/startpackpack.sh @@ -9,7 +9,7 @@ # General sanity checks checksanity () { # Check to see if this script has access to all the commands it needs - for CMD in set echo curl repoquery git ln mkdir rmdir cat patch; do + for CMD in set echo curl git ln mkdir rmdir cat patch; do type $CMD 2>&1 > /dev/null if [ $? -ne 0 ]; then @@ -20,6 +20,19 @@ checksanity () { fi done + if [ "${OS}" == "el" ] && [ "${DIST}" == "6" ]; then + type repoquery 2>&1 > /dev/null + + if [ $? -ne 0 ]; then + echo + echo "ERROR: The script cannot find the required command \"reqoquery\"." + echo "This command is required in order to build ZoneMinder on el6." + echo "Please install the \"yum-utils\" then try again." + echo + exit 1 + fi + fi + # Verify OS & DIST environment variables have been set before calling this script if [ -z "${OS}" ] || [ -z "${DIST}" ]; then echo "ERROR: both OS and DIST environment variables must be set"