From 2262ba2ff59b1011f6e9dc487d768ff910f13177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 8 Oct 2019 13:40:26 +0200 Subject: [PATCH] Fedra CI: Adapt to mock-core-configs >= 31.4 --- tests/mocktest.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/mocktest.sh b/tests/mocktest.sh index 2d1ed8a..57caf42 100755 --- a/tests/mocktest.sh +++ b/tests/mocktest.sh @@ -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 if [ ! -f $config ]; then original="/etc/mock/fedora-${fedora}-x86_64.cfg" - split=$(sed -n '/\[fedora\]/=' $original | head -n1) - head -n$(($split-1)) $original > $config + cp $original $config + + echo -e '\n\nconfig_opts["yum.conf"] += """' >> $config cat /etc/yum.repos.d/test-pyproject-rpm-macros.repo >> $config - echo >> $config - tail -n +$split $original >> $config + echo -e '\n"""\n' >> $config fi # prepare the rpmbuild folders, make sure nothing relevant is there