From 80743a7fbab22f88385a718af2d8400b62042ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 10 May 2024 20:25:33 +0200 Subject: [PATCH] Do not use dnf config-manager to set packit-dev repo priority MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dnf5 config-manager plugin doesn't seem to allow to permanently edit repository configuration, use sed to set the priority instead. Signed-off-by: Nikola Forró --- plans/packit-integration.fmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index d32ecb2..9806106 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -8,7 +8,7 @@ prepare: copr: packit/packit-dev # make sure the Copr repo has higher priority than TF Tag Repository - how: shell - script: dnf -y config-manager --save --setopt="*:packit:packit-dev.priority=5" + script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo adjust: - when: "how == integration"