Add external SUSE repo for libgl1

This commit is contained in:
2024-10-04 01:18:33 -04:00
parent 21c3cf49d4
commit 3694c7be13

View File

@@ -131,7 +131,7 @@ execute() {
init() {
debug "Running: ${FUNCNAME[0]}"
declare -g ID RPM_MGR ARCH
declare -g ID RPM_MGR ARCH OS_NAME
declare -ga PKG_INSTALL PKG_REMOVE PKG_UPDATE PKG_QUERY
echo "Starting installJRMC"
@@ -147,6 +147,8 @@ init() {
exit 1
fi
OS_NAME="${NAME// /_}"
# Detect architecture and translate to MC convention
ARCH=$(uname -m)
case $ARCH in
@@ -1710,16 +1712,25 @@ main() {
install_package epel-release
fi
if ! "${PKG_QUERY[@]}" rpmfusion-free-release &>/dev/null; then
echo "Installing the RPMFusion repository"
install_package --no-install-check \
"https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$VERSION_ID.noarch.rpm"
fi
;;
fedora)
if ! "${PKG_QUERY[@]}" rpmfusion-free-release &>/dev/null; then
echo "Installing the RPMFusion repository"
install_package --no-install-check \
"https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$VERSION_ID.noarch.rpm"
fi
;;
suse)
if ! zypper repos | grep -q "X11:XOrg"; then
echo "Installing the X11 repository"
execute sudo zypper --non-interactive --quiet addrepo \
"https://download.opensuse.org/repositories/X11:/XOrg/$OS_NAME/X11:XOrg.repo"
fi
;;
esac
if (( REPO_INSTALL_SWITCH )); then