From 8a0d613e6f982a24a8036cf9e06548f28f877cf4 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Tue, 1 Sep 2020 14:06:13 +0200 Subject: [PATCH] pkgdep/dnf: Refresh repo on Centos8 The d09acccf changed the order in which dnf, yum managers are picked up, however, the refresh step was not moved to dnf which actually is by default shipped with Centos8. Simply add the missing step. Change-Id: I6f845d794b79ff01d4abfff098b0b29a9c489189 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4015 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk Reviewed-by: Tomasz Zawadzki Reviewed-by: Karol Latecki --- test/common/config/pkgdep/dnf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/common/config/pkgdep/dnf b/test/common/config/pkgdep/dnf index 7a6cbe45c..7205bb740 100644 --- a/test/common/config/pkgdep/dnf +++ b/test/common/config/pkgdep/dnf @@ -67,6 +67,9 @@ pre_install() { # FIXME: Review when fedora starts to successfully build this package again. install tsocks || echo "Installation of the tsocks package failed, proxy may not be available" fi + if [[ $ID == centos ]] && (( VERSION_ID == 8 )); then + sudo "$package_manager" update -y --refresh + fi } if [[ $OSID != fedora ]]; then