Fedra CI: Adapt to mock-core-configs >= 31.4
This commit is contained in:
parent
102626373e
commit
2262ba2ff5
@ -15,11 +15,11 @@ config="/tmp/fedora-${fedora}-x86_64-ci.cfg"
|
|||||||
# TODO: check if it has precedence if the release was not bumped in tested PR
|
# TODO: check if it has precedence if the release was not bumped in tested PR
|
||||||
if [ ! -f $config ]; then
|
if [ ! -f $config ]; then
|
||||||
original="/etc/mock/fedora-${fedora}-x86_64.cfg"
|
original="/etc/mock/fedora-${fedora}-x86_64.cfg"
|
||||||
split=$(sed -n '/\[fedora\]/=' $original | head -n1)
|
cp $original $config
|
||||||
head -n$(($split-1)) $original > $config
|
|
||||||
|
echo -e '\n\nconfig_opts["yum.conf"] += """' >> $config
|
||||||
cat /etc/yum.repos.d/test-pyproject-rpm-macros.repo >> $config
|
cat /etc/yum.repos.d/test-pyproject-rpm-macros.repo >> $config
|
||||||
echo >> $config
|
echo -e '\n"""\n' >> $config
|
||||||
tail -n +$split $original >> $config
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# prepare the rpmbuild folders, make sure nothing relevant is there
|
# prepare the rpmbuild folders, make sure nothing relevant is there
|
||||||
|
Loading…
Reference in New Issue
Block a user