File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
share/ci/scripts/linux/dnf Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,29 @@ if ! command -v doxygen >/dev/null; then
1616 else
1717 source /etc/os-release
1818 if [ " $ID " = " centos" ] && [ " $VERSION_ID " = " 7" ]; then
19+ if [ " $VERSION " = " 7 (AltArch)" ]; then
20+ BASE_DIR=" altarch/7"
21+ else
22+ BASE_DIR=" 7.9.2009"
23+ fi
24+
1925 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2026 tee /etc/yum.repos.d/CentOS-Vault.repo > /dev/null << EOF
2127[base]
2228name=CentOS-7 - Base
23- baseurl=http://vault.centos.org/7.9.2009 /os/\$ basearch/
29+ baseurl=http://vault.centos.org/$BASE_DIR /os/\$ basearch/
2430gpgcheck=1
2531gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
2632
2733[updates]
2834name=CentOS-7 - Updates
29- baseurl=http://vault.centos.org/7.9.2009 /updates/\$ basearch/
35+ baseurl=http://vault.centos.org/$BASE_DIR /updates/\$ basearch/
3036gpgcheck=1
3137gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
3238
3339[extras]
3440name=CentOS-7 - Extras
35- baseurl=http://vault.centos.org/7.9.2009 /extras/\$ basearch/
41+ baseurl=http://vault.centos.org/$BASE_DIR /extras/\$ basearch/
3642gpgcheck=1
3743gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
3844EOF
You can’t perform that action at this time.
0 commit comments