Skip to content

Commit

Permalink
use $rpmbuild in nocheck test code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jan 15, 2015
1 parent 103f37c commit 999fe7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-recipe-spec
Expand Up @@ -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
Expand Down

0 comments on commit 999fe7a

Please sign in to comment.