Skip to content

Commit

Permalink
Update dnf_wrapper.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jupierce committed Feb 16, 2024
1 parent d1795c0 commit dbe8fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci_images/dnf_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ if [[ ! -f "${FIRST_RUN_MARKER}" && "${SKIP_REPO_INSTALL}" == "0" ]]; then
rm -rf /etc/yum.repos.d/*

INSTALL_ART_REPOS="0"
if [[ -e "/var/run/secrets/kubernetes.io" ]]; then
# We are running inside of a pod. Assume that this is a build farm
if [[ -n "${BUILD_LOGLEVEL:-}" ]]; then
# BUILD_LOGLEVEL is set by OpenShift builds. If we see it set, assume we are running on a build farm
# and we can find the RPM mirroring services.
if curl --fail "${CI_RPM_SVC}" > /etc/yum.repos.d/ci-rpm-mirrors.repo; then
echoerr "Installed CI repo definitions from ${CI_RPM_SVC}..."
Expand All @@ -81,4 +81,4 @@ if [[ ! -f "${FIRST_RUN_MARKER}" && "${SKIP_REPO_INSTALL}" == "0" ]]; then
touch "${FIRST_RUN_MARKER}"
fi

$0.real "$@"
$0.real "$@"

0 comments on commit dbe8fa0

Please sign in to comment.