Copy the mock template during mockbuild
Copying the file allows the mock build stage to be run again. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
41e255bc8c
commit
43895f83ca
1 changed files with 2 additions and 2 deletions
|
|
@ -72,14 +72,14 @@ make -C osbuild srpm
|
|||
# Fix RHEL 8 mock template for non-subscribed images.
|
||||
if [[ "${ID}${VERSION_ID//./}" == rhel83 ]]; then
|
||||
greenprint "📋 Updating RHEL 8 mock template for unsubscribed image"
|
||||
sudo mv $NIGHTLY_MOCK_TEMPLATE /etc/mock/templates/rhel-8.tpl
|
||||
sudo cp $NIGHTLY_MOCK_TEMPLATE /etc/mock/templates/rhel-8.tpl
|
||||
cat $NIGHTLY_REPO | sudo tee -a /etc/mock/templates/rhel-8.tpl > /dev/null
|
||||
echo '"""' | sudo tee -a /etc/mock/templates/rhel-8.tpl > /dev/null
|
||||
fi
|
||||
|
||||
# Compile RPMs in a mock chroot
|
||||
greenprint "🎁 Building RPMs with mock"
|
||||
sudo mock -r $MOCK_CONFIG --resultdir $REPO_DIR --with=tests \
|
||||
sudo mock -v -r $MOCK_CONFIG --resultdir $REPO_DIR --with=tests \
|
||||
rpmbuild/SRPMS/*.src.rpm osbuild/rpmbuild/SRPMS/*.src.rpm
|
||||
sudo chown -R $USER ${REPO_DIR}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue