Browse Source

Allow broken depenencies with dnf

bryan 3 years ago
parent
commit
1903ed4465
1 changed files with 6 additions and 1 deletions
  1. 6 1
      installJRMC

+ 6 - 1
installJRMC

@@ -426,7 +426,7 @@ installPackage() {
     local -a _pkg_array _install_flags
     local _pkg _nocheck _silent _return
 
-    if _input=$(getopt -o +s -l nocheck,nogpgcheck,silent -- "$@"); then
+    if _input=$(getopt -o +s -l nocheck,nogpgcheck,skip-broken,silent -- "$@"); then
         eval set -- "$_input"
         while true; do
             case "$1" in
@@ -440,6 +440,11 @@ installPackage() {
                         _install_flags+=("--allow-unsigned-rpm")
                     fi
                     ;;
+                --skip-broken)
+                    if [[ "$ID" =~ ^(fedora|centos)$ ]]; then
+                        _install_flags+=("--skip-broken")
+                    fi
+                    ;;
                 --silent|-s)
                     _silent=true
                     ;;