From d33b9255e993eb8eb5bd3bbd678aecbd6346feab Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Thu, 12 Apr 2012 16:38:40 -0400 Subject: [PATCH] ThirdParty: stop building script when spec file is missing --- ThirdParty/tools/makeThirdPartyFunctionsForRPM | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ThirdParty/tools/makeThirdPartyFunctionsForRPM b/ThirdParty/tools/makeThirdPartyFunctionsForRPM index 855a0d2c0..f70044237 100755 --- a/ThirdParty/tools/makeThirdPartyFunctionsForRPM +++ b/ThirdParty/tools/makeThirdPartyFunctionsForRPM @@ -166,8 +166,8 @@ rpm_build() cd $buildBase [ -e ./SPECS/$specFile ] || { - echo "rpm_build: missing SPEC file for package $package. Aborting." - return 1 + echo "rpm_build: Error: missing SPEC file for package $package. Aborting." + exit -1 } #Build RPM package