Use internal package name

This commit is contained in:
2025-06-02 20:06:51 -04:00
parent f227050f6c
commit dc0eaed0f6

View File

@@ -503,7 +503,7 @@ install_package() {
((no_gpg_check)) && install_flags+=(--nogpgcheck)
((refresh)) && install_flags+=(--refresh)
# Only add reinstall flag for mediacenter package
if ((reinstall)) && [[ ${#pkg_array[@]} -eq 1 ]] && "${PKG_QUERY[@]}" "${pkg_array[0]%%-*}" &>/dev/null; then
if ((reinstall)) && [[ ${#pkg_array[@]} -eq 1 ]] && "${PKG_QUERY[@]}" "mediacenter$MC_MVERSION" &>/dev/null; then
pkg_install=("${pkg_install[@]/install/reinstall}")
fi
;;