From 999fe7ab99f90fd420b0df1110e3bf1dcd61e600 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 15 Jan 2015 15:04:48 +0100 Subject: [PATCH] use $rpmbuild in nocheck test code --- build-recipe-spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-recipe-spec b/build-recipe-spec index ff248811a..78e4aa6ac 100644 --- a/build-recipe-spec +++ b/build-recipe-spec @@ -110,10 +110,10 @@ recipe_build_spec() { # XXX: move _srcdefattr to macro file? rpmbopts=("$BUILD_RPM_BUILD_STAGE" "--define" "_srcdefattr (-,root,root)") if test "$DO_CHECKS" != true ; then - if chroot "$BUILD_ROOT" rpmbuild --nocheck --help >/dev/null 2>&1; then + if chroot "$BUILD_ROOT" "$rpmbuild" --nocheck --help >/dev/null 2>&1; then rpmbopts[${#rpmbopts[@]}]="--nocheck" else - echo "warning: --nocheck is not supported by this rpmbuild version" + echo "warning: --nocheck is not supported by this $rpmbuild version" fi fi if test "$rpmbuild" == "rpmbuild" ; then