Skip to content

Commit 4350354

Browse files
committed
Add altarch doxygen handling
Signed-off-by: Michael Dolan <[email protected]>
1 parent d42c7ca commit 4350354

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

share/ci/scripts/linux/dnf/install_doxygen.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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]
2228
name=CentOS-7 - Base
23-
baseurl=http://vault.centos.org/7.9.2009/os/\$basearch/
29+
baseurl=http://vault.centos.org/$BASE_DIR/os/\$basearch/
2430
gpgcheck=1
2531
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
2632
2733
[updates]
2834
name=CentOS-7 - Updates
29-
baseurl=http://vault.centos.org/7.9.2009/updates/\$basearch/
35+
baseurl=http://vault.centos.org/$BASE_DIR/updates/\$basearch/
3036
gpgcheck=1
3137
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
3238
3339
[extras]
3440
name=CentOS-7 - Extras
35-
baseurl=http://vault.centos.org/7.9.2009/extras/\$basearch/
41+
baseurl=http://vault.centos.org/$BASE_DIR/extras/\$basearch/
3642
gpgcheck=1
3743
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
3844
EOF

0 commit comments

Comments
 (0)