]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Trying to fix package build in stage develop
authorFrank Brehm <frank@brehm-online.com>
Fri, 1 Apr 2022 13:32:45 +0000 (15:32 +0200)
committerFrank Brehm <frank@brehm-online.com>
Fri, 1 Apr 2022 13:32:45 +0000 (15:32 +0200)
.gitlab-ci.yml

index f7289dc3369a10eeb018b5240f720ad314e2d5b8..e54092879c6a9b29cc8d3357c0c73f9c6286b727 100644 (file)
@@ -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
     - |