From f7e27fc87271d24e458a5b51fdfeb882fdfaebd8 Mon Sep 17 00:00:00 2001 From: Scott Poore Date: Wed, 16 Oct 2024 13:13:51 -0500 Subject: [PATCH] Update upstream tests to disable fedora repos c10s upstream testing is running with fedora repos as a workaround to not having EPEL10 available yet. So, to avoid an issue of installing the wrong version, we have to disable those repos and uninstall then re-install jq from the correct repos. and download source rpm with those repos disabled. --- tests/upstream/jqtests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/upstream/jqtests.sh b/tests/upstream/jqtests.sh index 3c859f5..a6a4474 100755 --- a/tests/upstream/jqtests.sh +++ b/tests/upstream/jqtests.sh @@ -5,10 +5,14 @@ die () { exit 1 } +dnf list jq +dnf remove -y jq +dnf --disablerepo=fedora* --disablerepo=updates* install -y jq jq-devel + # If source not found, download it with dnf if [ ! -d ./source ]; then # Extract source from srpm - dnf download --source jq && \ + dnf --disablerepo=fedora* --disablerepo=updates* download --source jq && \ rpm2cpio jq*.rpm|cpio -id && \ mkdir source && \ tar -zxf jq-*.tar.gz -C source --strip-components=1