Try --nobest

This commit is contained in:
2021-12-28 12:29:07 -05:00
parent 256ccabe1b
commit 2bb37d1e7a

View File

@@ -426,7 +426,7 @@ installPackage() {
local -a _pkg_array _install_flags local -a _pkg_array _install_flags
local _pkg _nocheck _silent _return local _pkg _nocheck _silent _return
if _input=$(getopt -o +s -l nocheck,nogpgcheck,skip-broken,silent -- "$@"); then if _input=$(getopt -o +s -l nocheck,nogpgcheck,nobest,silent -- "$@"); then
eval set -- "$_input" eval set -- "$_input"
while true; do while true; do
case "$1" in case "$1" in
@@ -440,9 +440,9 @@ installPackage() {
_install_flags+=("--allow-unsigned-rpm") _install_flags+=("--allow-unsigned-rpm")
fi fi
;; ;;
--skip-broken) --nobest)
if [[ "$ID" =~ ^(fedora|centos)$ ]]; then if [[ "$ID" =~ ^(fedora|centos)$ ]]; then
_install_flags+=("--skip-broken") _install_flags+=("--nobest")
fi fi
;; ;;
--silent|-s) --silent|-s)
@@ -1477,7 +1477,7 @@ main() {
#rpm --upgrade "$_mcrpm" #rpm --upgrade "$_mcrpm"
if installPackage --nocheck --nogpgcheck "$_mcrpm"; then if installPackage --nocheck --nogpgcheck --nobest "$_mcrpm"; then
echo "JRiver Media Center installed successfully" echo "JRiver Media Center installed successfully"
else else
err "JRiver Media Center installation failed" err "JRiver Media Center installation failed"