Fix nested rpmbuild

This commit is contained in:
2023-03-24 16:59:46 -04:00
parent 6c685b26a4
commit 5db207ed56

View File

@@ -599,7 +599,7 @@ installMCFromRepo() {
;; ;;
*) *)
err "An MC repository for $ID is not yet available" err "An MC repository for $ID is not yet available"
err "Try using --install local to install MC on $ID" err "Use --install local to install MC on $ID"
return 1 return 1
;; ;;
esac esac
@@ -818,8 +818,8 @@ buildRPM() {
echo "Building MC $MCVERSION RPM, this may take awhile" echo "Building MC $MCVERSION RPM, this may take awhile"
rpmbuild_cmd=( rpmbuild_cmd=(
rpmbuild rpmbuild
--define=\"%_topdir "$OUTPUTDIR"\" --define="%_topdir $OUTPUTDIR"
--define=\"%_libdir /usr/lib\" --define="%_libdir /usr/lib"
-bb -bb
"$OUTPUTDIR/SPECS/mediacenter.spec" "$OUTPUTDIR/SPECS/mediacenter.spec"
) )