Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/mock-not-offline'
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrug committed Mar 16, 2016
2 parents 46897f9 + a0097a5 commit 46a8aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpmbuild.sh
Expand Up @@ -18,15 +18,15 @@ function build_srpm {
# determine the name of the rpm from the specfile
rpmname=$(IGNORECASE=1 awk '/^Name:/ {print $2}' ${SPECFILE})
rm -f ${SRPMS_DIR}/${rpmname}-*.src.rpm
/usr/bin/mock --offline --buildsrpm --spec ${SPECFILE} --sources $(pwd) --resultdir ${SRPMS_DIR}
/usr/bin/mock --buildsrpm --spec ${SPECFILE} --sources $(pwd) --resultdir ${SRPMS_DIR}
RETVAL=$?
if [[ ${RETVAL} != 0 ]]
then
err "Could not build SRPM ${rpmname} using the specfile ${SPECFILE}"
exit ${SRPMBUILD_ERR}
fi
srpmname=${SRPMS_DIR}/${rpmname}-*.src.rpm
/usr/bin/mock --offline --rebuild ${srpmname} -D "%debug_package %{nil}" --resultdir ${RPMS_DIR}
/usr/bin/mock --rebuild ${srpmname} -D "%debug_package %{nil}" --resultdir ${RPMS_DIR}
RETVAL=$?
if [[ ${RETVAL} != 0 ]]
then
Expand Down

0 comments on commit 46a8aa3

Please sign in to comment.