From: Frank Brehm Date: Fri, 1 Apr 2022 13:32:45 +0000 (+0200) Subject: Trying to fix package build in stage develop X-Git-Tag: 0.4.1^2~5 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=d898e6522cddaa08924b1e7ab3df04d2f78bc151;p=pixelpark%2Fpp-admin-tools.git Trying to fix package build in stage develop --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7289dc..e540928 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -170,7 +170,16 @@ Linter: expire_in: '1 week' before_script: - ls -lA --color=always /etc/yum.repos.d - - if test -f /etc/yum.repos.d/CentOS-Linux-AppStream.repo; then echo "CentOS-Linux-AppStream.repo:"; cat /etc/yum.repos.d/CentOS-Linux-AppStream.repo; fi + - | + echo "Manipulating repo files in CentOS 8 ..." + if [[ "${EL_MAJOR_VERSION}" -ge "7" ]] ; then + for repo_file in /etc/yum.repos.d/CentOS-Linux*.repo ; do + echo + echo "Changing ${repo_file} ..." + sed -i -e 's/^mirrorlist/# mirrorlist/' -e 's/^#[ ]*baseurl/baseurl/' "${repo_file}" + cat "${repo_file}" + done + fi - ${YUM} clean all - ${YUM} makecache - |