From dde8a5166fd5072f77016bd7fe44b9c0833a2689 Mon Sep 17 00:00:00 2001 From: Frank Scheiner Date: Wed, 30 Oct 2024 21:17:36 +0100 Subject: [PATCH] CI: update potentially stale repo data before trying to install packages --- travis-ci/run_task_inside_docker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/travis-ci/run_task_inside_docker.sh b/travis-ci/run_task_inside_docker.sh index a6f0e22dc..a79c6ee1a 100755 --- a/travis-ci/run_task_inside_docker.sh +++ b/travis-ci/run_task_inside_docker.sh @@ -117,7 +117,8 @@ elif [[ $TASK == *rpms ]]; then packages+=(pam libedit libedit-devel) fi -dnf --allowerasing -y -d1 install "${packages[@]}" +# update potentially stale repo data before trying to install packages +dnf --refresh --allowerasing -y -d1 install "${packages[@]}" # UID of travis user inside needs to match UID of travis user outside getent passwd travis > /dev/null || useradd travis -u $TRAVISUID -o