diff --git a/contrib/packit-tmt/update-deps.sh b/contrib/packit-tmt/update-deps.sh index dc2d14dc95..50fa90b832 100644 --- a/contrib/packit-tmt/update-deps.sh +++ b/contrib/packit-tmt/update-deps.sh @@ -2,6 +2,11 @@ set -exo pipefail +DISABLE_REPO=() +if grep -s -r -q -F '[testing-farm-tag-repository]' /etc/yum.repos.d 2>/dev/null; then + DISABLE_REPO=(--disable-repo=testing-farm-tag-repository) +fi + # This should work even when podman-next isn't installed. It'll fetch the # highest versions available across all repos. -dnf -y upgrade --allowerasing --disable-repo=testing-farm-tag-repository --exclude=podman* +dnf -y upgrade --allowerasing "${DISABLE_REPO[@]}" --exclude=podman*