Always install, don't reinstall MC RPMs

This commit is contained in:
2025-11-13 09:23:22 -05:00
parent b4a80f5ba1
commit d015f70ec2

View File

@@ -21,7 +21,7 @@
# shellcheck disable=SC2329 # shellcheck disable=SC2329
shopt -s extglob shopt -s extglob
declare -g SCRIPT_VERSION="1.34.11" declare -g SCRIPT_VERSION="1.34.12-dev"
declare -g MC_VERSION_HARDCODE="34.0.71" # do find all replace declare -g MC_VERSION_HARDCODE="34.0.71" # do find all replace
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
declare -g BOARD_ID="89.0" # MC34 board ID for automatic version detection declare -g BOARD_ID="89.0" # MC34 board ID for automatic version detection
@@ -528,10 +528,6 @@ install_package() {
((allow_downgrades)) && install_flags+=(--allowerasing) ((allow_downgrades)) && install_flags+=(--allowerasing)
((no_gpg_check)) && install_flags+=(--nogpgcheck) ((no_gpg_check)) && install_flags+=(--nogpgcheck)
((refresh)) && install_flags+=(--refresh) ((refresh)) && install_flags+=(--refresh)
# Only add reinstall flag for mediacenter package
if ((reinstall)) && [[ ${#pkg_array[@]} -eq 1 ]] && "${PKG_QUERY[@]}" "mediacenter$MC_MVERSION" &>/dev/null; then
pkg_install=("${pkg_install[@]/install/reinstall}")
fi
;; ;;
suse) suse)
((no_gpg_check)) && install_flags+=(--allow-unsigned-rpm) ;; ((no_gpg_check)) && install_flags+=(--allow-unsigned-rpm) ;;
@@ -1155,7 +1151,7 @@ install_mc_deb() {
# @description Installs MC via RPM package # @description Installs MC via RPM package
install_mc_rpm() { install_mc_rpm() {
debug "${FUNCNAME[0]}()" debug "${FUNCNAME[0]}()"
install_package --no-install-check --no-gpg-check --allow-downgrades --reinstall "$MC_RPM" install_package --no-install-check --no-gpg-check --allow-downgrades "$MC_RPM"
} }
# @description Installs Media Center generically for unsupported OSes # @description Installs Media Center generically for unsupported OSes