From 55a5089b2e18337e33872bc0f794252a989bda1d Mon Sep 17 00:00:00 2001 From: Vadim Yalovets Date: Wed, 7 Aug 2024 12:34:04 +0300 Subject: [PATCH] DISTMYSQL-438 Pt sources not present in pdps-8.0 repo --- config/scripts/pt_builder.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/scripts/pt_builder.sh b/config/scripts/pt_builder.sh index a5352344..ae8d12f1 100644 --- a/config/scripts/pt_builder.sh +++ b/config/scripts/pt_builder.sh @@ -28,6 +28,11 @@ append_arg_to_args () { args="$args "$(shell_quote_string "$1") } +switch_to_vault_repo() { + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + sed -i 's|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* +} + parse_arguments() { pick_args= if test "$1" = PICK-ARGS-FROM-ARGV @@ -207,6 +212,9 @@ install_deps() { CURPLACE=$(pwd) if [ "x$OS" = "xrpm" ]; then + if [ "x${RHEL}" = "x7" ]; then + switch_to_vault_repo + fi yum -y install wget git which tar add_percona_yum_repo # wget http://jenkins.percona.com/yum-repo/percona-dev.repo