Skip to content

Commit

Permalink
fix(akmods): Don't install RPMFusion if it's already installed
Browse files Browse the repository at this point in the history
Otherwise, it complains about package conflict.
  • Loading branch information
fiftydinar authored Oct 7, 2024
1 parent 670fded commit 447a9db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/akmods/akmods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ ENABLE_AKMODS_REPO() {
}

INSTALL_RPM_FUSION() {
if [[ "$(rpm -q rpmfusion-free-release)" != "rpmfusion-free-release"* && "$(rpm -q rpmfusion-nonfree-release)" != "rpmfusion-nonfree-release"* ]]; then
rpm-ostree install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${OS_VERSION}.noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${OS_VERSION}.noarch.rpm
previously_not_installed_rpm_fusion=true
else
previously_not_installed_rpm_fusion=false
fi
}

UNINSTALL_RPM_FUSION() {
if "${previously_not_installed_rpm_fusion}"; then
rpm-ostree uninstall rpmfusion-free-release rpmfusion-nonfree-release
fi
}

get_yaml_array INSTALL '.install[]' "$1"
Expand Down

0 comments on commit 447a9db

Please sign in to comment.